mirror of https://github.com/layui/layui
fix(form-select): 修复 `lay-append-to` 属性开启时在 dropdown 中点击 select 面板导致 dropdown 面板被关闭的问题 (#2138)
* fix(form-select): 开启 `lay-append-to` 时,在 dropdown 中点击 select 面板,会导致 dropdown 面板意外关闭 * updatepull/2151/head
parent
130533e967
commit
af792a8452
|
@ -745,6 +745,11 @@ layui.define(['lay', 'layer', 'util'], function(exports){
|
|||
hideDown(true);
|
||||
return false;
|
||||
});
|
||||
|
||||
// 用于开启 lay-append-to 时兼容 dropdown
|
||||
dl.on('mousedown pointerdown touchstart', function(e){
|
||||
return false;
|
||||
})
|
||||
|
||||
reElem.find('dl>dt').on('click', function(e){
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue