Parcourir la source

Slider: fix broken keyboard a11y bug (#14792)

Erez Sobel il y a 6 ans
Parent
commit
73ca7be647
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      packages/slider/src/button.vue

+ 2 - 0
packages/slider/src/button.vue

@@ -145,11 +145,13 @@
         if (this.disabled) return;
         this.newPosition = parseFloat(this.currentPosition) - this.step / (this.max - this.min) * 100;
         this.setPosition(this.newPosition);
+        this.$parent.emitChange();
       },
       onRightKeyDown() {
         if (this.disabled) return;
         this.newPosition = parseFloat(this.currentPosition) + this.step / (this.max - this.min) * 100;
         this.setPosition(this.newPosition);
+        this.$parent.emitChange();
       },
       onDragStart(event) {
         this.dragging = true;