优化 select 的搜索框输入事件

pull/1203/head
贤心 2023-02-15 20:45:36 +08:00
parent 005586b1f0
commit efbd528efe
1 changed files with 2 additions and 2 deletions

View File

@ -511,7 +511,7 @@ layui.define(['lay', 'layer', 'util'], function(exports){
};
if(isSearch){
input.on('keyup', search).on('blur', function(e){
input.on('input propertychange', search).on('blur', function(e){
var selectedIndex = select[0].selectedIndex;
thatInput = input; // 当前的 select 中的 input 元素