Skip to content

Commit

Permalink
fix(modals): don't destroy the dropdown for modals
Browse files Browse the repository at this point in the history
  • Loading branch information
msyavuz committed Feb 7, 2025
1 parent 13b9b10 commit 0a1583d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions superset-frontend/src/components/Dropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,13 @@ export const NoAnimationDropdown = (props: NoAnimationDropdownProps) => {
});

return (
<AntdDropdown
autoFocus
destroyPopupOnHide
overlayStyle={props.overlayStyle}
{...rest}
>
<AntdDropdown autoFocus overlayStyle={props.overlayStyle} {...rest}>
{childrenWithProps}
</AntdDropdown>
);
};

export type DropdownProps = AntdDropdownProps;
export const Dropdown = (props: DropdownProps) => (
<AntdDropdown autoFocus destroyPopupOnHide {...props} />
<AntdDropdown autoFocus {...props} />
);

0 comments on commit 0a1583d

Please sign in to comment.