From 2a60f6625a3735ba30963cad2c7659c686ee6403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Thu, 10 Aug 2023 12:41:14 +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=E7=89=B9=E6=AE=8A=E6=83=85=E5=86=B5=E4=B8=8B?= =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=B5=8F=E8=A7=88=E5=99=A8=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E5=B0=BA=E5=AF=B8=E6=97=B6=E5=87=BA=E7=8E=B0=E7=9A=84=20`resiz?= =?UTF-8?q?e`=20=E4=BA=8B=E4=BB=B6=E6=8A=A5=E9=94=99=E9=97=AE=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 8681d4d8..2099296b 100644 --- a/src/modules/dropdown.js +++ b/src/modules/dropdown.js @@ -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; }