mirror of https://github.com/ElemeFE/element
Slider: fix broken keyboard a11y bug (#14792)
parent
8cd5d9a438
commit
73ca7be647
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue