修复 dropdown 在某些情况下点击空白处报错的问题

pull/1216/head
贤心 2023-03-20 17:16:07 +08:00
parent 4d94ade471
commit 9c18caf0b0
1 changed files with 1 additions and 1 deletions

View File

@ -453,7 +453,7 @@ layui.define(['jquery', 'laytpl', 'lay'], function(exports){
if(
e.target === options.elem[0] ||
options.elem.find(e.target)[0] ||
e.target === that.elemView[0] ||
(that.elemView && e.target === that.elemView[0]) ||
(that.elemView && that.elemView.find(e.target)[0])
) return;
}