From 9c18caf0b0885322428c33a6d99e5a1ef3b42dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Mon, 20 Mar 2023 17:16:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20dropdown=20=E5=9C=A8?= =?UTF-8?q?=E6=9F=90=E4=BA=9B=E6=83=85=E5=86=B5=E4=B8=8B=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E7=A9=BA=E7=99=BD=E5=A4=84=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/dropdown.js b/src/modules/dropdown.js index c64e2934..cafff384 100644 --- a/src/modules/dropdown.js +++ b/src/modules/dropdown.js @@ -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; }