Rate: pressing nav keys shouldn't update value when disabled (#10726)

pull/10729/head
Richard-Choooou 2018-04-16 12:27:25 +08:00 committed by 杨奕
parent 25fcfb34d7
commit 4b628e9cf7
1 changed files with 3 additions and 0 deletions

View File

@ -278,6 +278,9 @@
}, },
handleKey(e) { handleKey(e) {
if (this.rateDisabled) {
return;
}
let currentValue = this.currentValue; let currentValue = this.currentValue;
const keyCode = e.keyCode; const keyCode = e.keyCode;
if (keyCode === 38 || keyCode === 39) { // left / down if (keyCode === 38 || keyCode === 39) { // left / down