diff --git a/src/modules/dropdown.js b/src/modules/dropdown.js index cafff384..adefe8cd 100644 --- a/src/modules/dropdown.js +++ b/src/modules/dropdown.js @@ -285,7 +285,10 @@ layui.define(['jquery', 'laytpl', 'lay'], function(exports){ // 普通菜单项点击后的回调及关闭面板 if((!isChild || isClickAllScope) && data.type !== '-'){ - var ret = typeof options.click === 'function' && options.click(data, othis); + var ret = typeof options.click === 'function' + ? options.click(data, othis) + : null; + ret === false || (isChild || that.remove()); layui.stope(e); }