From cb90e8d1e436d5bc6db22fa2340004a6a8d95f37 Mon Sep 17 00:00:00 2001 From: Uyarn Date: Thu, 8 Dec 2022 14:52:46 +0800 Subject: [PATCH] chore: update common --- src/_common | 2 +- src/dropdown/dropdown.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); };