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; }