Merge branch 'next' of https://gitee.com/layui/layui-vue into next

This commit is contained in:
就眠儀式 2022-09-11 20:10:38 +08:00
commit bfdf86010e

View File

@ -541,6 +541,11 @@ const handleFocusout = () => {
hide(); hide();
}; };
const handleContextHide = () => {
hide();
dropdownCtx?.hide();
}
const addChildRef = (ref: any) => { const addChildRef = (ref: any) => {
childrenRefs.add(ref); childrenRefs.add(ref);
dropdownCtx?.addChildRef(ref); dropdownCtx?.addChildRef(ref);
@ -648,7 +653,7 @@ provide(
onMouseleave: handleMouseLeaveWithContext, onMouseleave: handleMouseLeaveWithContext,
addChildRef, addChildRef,
removeChildRef, removeChildRef,
hide, hide: handleContextHide,
}) })
); );