mirror of https://github.com/ElemeFE/element
Rate: pressing nav keys shouldn't update value when disabled (#10726)
parent
25fcfb34d7
commit
4b628e9cf7
|
@ -278,6 +278,9 @@
|
|||
},
|
||||
|
||||
handleKey(e) {
|
||||
if (this.rateDisabled) {
|
||||
return;
|
||||
}
|
||||
let currentValue = this.currentValue;
|
||||
const keyCode = e.keyCode;
|
||||
if (keyCode === 38 || keyCode === 39) { // left / down
|
||||
|
|
Loading…
Reference in New Issue