diff --git a/src/_common b/src/_common index d6bdd0126..6e5672a01 160000 --- a/src/_common +++ b/src/_common @@ -1 +1 @@ -Subproject commit d6bdd01267819fe31294ca3aea54f57579ab2685 +Subproject commit 6e5672a019fd4a84fa986e6743e18f0a38c26690 diff --git a/src/dropdown/dropdown.tsx b/src/dropdown/dropdown.tsx index acc3437d7..eef0de96c 100644 --- a/src/dropdown/dropdown.tsx +++ b/src/dropdown/dropdown.tsx @@ -13,7 +13,7 @@ export default defineComponent({ props: { ...props }, setup(props: TdDropdownProps, { emit }) { const dropdownClass = usePrefixClass('dropdown'); - const isPopupVisible = ref(true); + const isPopupVisible = ref(false); const handleMenuClick = (data: DropdownOption, context: { e: MouseEvent }) => { if (props.hideAfterItemClick) { @@ -25,7 +25,7 @@ export default defineComponent({ }; const handleVisibleChange = (visible: boolean, context: PopupVisibleChangeContext) => { - // isPopupVisible.value = visible; + isPopupVisible.value = visible; props.popupProps?.onVisibleChange?.(visible, context); };