Skip to content

Commit

Permalink
chore: update common
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Dec 8, 2022
1 parent 5944b0c commit cb90e8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/_common
4 changes: 2 additions & 2 deletions src/dropdown/dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -25,7 +25,7 @@ export default defineComponent({
};

const handleVisibleChange = (visible: boolean, context: PopupVisibleChangeContext) => {
// isPopupVisible.value = visible;
isPopupVisible.value = visible;
props.popupProps?.onVisibleChange?.(visible, context);
};

Expand Down

0 comments on commit cb90e8d

Please sign in to comment.