mirror of
https://gitee.com/layui/layui.git
synced 2025-05-04 20:58:02 +08:00
优化 select 的搜索框输入事件
This commit is contained in:
parent
005586b1f0
commit
efbd528efe
@ -511,7 +511,7 @@ layui.define(['lay', 'layer', 'util'], function(exports){
|
|||||||
};
|
};
|
||||||
|
|
||||||
if(isSearch){
|
if(isSearch){
|
||||||
input.on('keyup', search).on('blur', function(e){
|
input.on('input propertychange', search).on('blur', function(e){
|
||||||
var selectedIndex = select[0].selectedIndex;
|
var selectedIndex = select[0].selectedIndex;
|
||||||
|
|
||||||
thatInput = input; // 当前的 select 中的 input 元素
|
thatInput = input; // 当前的 select 中的 input 元素
|
||||||
|
Loading…
Reference in New Issue
Block a user