mirror of https://github.com/layui/layui
修复 dropdown 在某些特殊情况下调整浏览器窗口尺寸时出现的 `resize` 事件报错问题
parent
f7d1696ab1
commit
2a60f6625a
|
@ -455,7 +455,7 @@ layui.define(['jquery', 'laytpl', 'lay', 'util'], function(exports){
|
|||
var that = thisModule.getThis(dropdown.thisId);
|
||||
if(!that) return;
|
||||
|
||||
if(!that.elemView[0] || !$('.'+ STR_ELEM)[0]){
|
||||
if((that.elemView && !that.elemView[0]) || !$('.'+ STR_ELEM)[0]){
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue