Bläddra i källkod

Slider: fix broken keyboard a11y bug (#14792)

Erez Sobel 6 år sedan
förälder
incheckning
73ca7be647
1 ändrade filer med 2 tillägg och 0 borttagningar
  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;