浏览代码

Slider: fix broken keyboard a11y bug (#14792)

Erez Sobel 6 年之前
父节点
当前提交
73ca7be647
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;