Merge pull request #512 from qinzhou/master
修复低版本浏览器select组件在搜索时,按下backspace无法正确删除搜索关键字
This commit is contained in:
commit
3a398ab371
1 changed files with 2 additions and 1 deletions
|
@ -597,7 +597,8 @@
|
|||
},
|
||||
handleKeydown (e) {
|
||||
const key = e.key || e.code;
|
||||
if (key === 'Backspace'){
|
||||
const keyCode = e.keyCode || e.which;
|
||||
if (key === 'Backspace' || keyCode===8){
|
||||
return; // so we don't call preventDefault
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue