提交 3b0bff7e 编写于 作者: 王钦洲

修复低版本浏览器select组件在搜索时,按下backspace无法正确删除搜索关键字

上级 8a994e63
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册