mirror of
https://gitee.com/layui/layui.git
synced 2025-05-02 20:02:50 +08:00
修复 dropdown 设置 show: true
时,ready
回调未执行的问题
This commit is contained in:
parent
0bb33f66fd
commit
7b058aeecb
@ -301,6 +301,11 @@ layui.define(['jquery', 'laytpl', 'lay'], function(exports){
|
||||
});
|
||||
}
|
||||
|
||||
// 组件打开完毕的事件
|
||||
typeof options.ready === 'function' && options.ready(
|
||||
that.elemView,
|
||||
options.elem
|
||||
);
|
||||
};
|
||||
|
||||
//位置定位
|
||||
@ -361,9 +366,6 @@ layui.define(['jquery', 'laytpl', 'lay'], function(exports){
|
||||
that.e = e;
|
||||
that.render();
|
||||
e.preventDefault();
|
||||
|
||||
//组件打开完毕的时间
|
||||
typeof options.ready === 'function' && options.ready(that.elemView, options.elem, that.e.target);
|
||||
};
|
||||
|
||||
//触发元素事件
|
||||
|
Loading…
Reference in New Issue
Block a user