Skip to content

Commit

Permalink
fix(form): fix filter dropdown not close (ant-design#6067)
Browse files Browse the repository at this point in the history
  • Loading branch information
ONLY-yours authored Oct 13, 2022
1 parent 00c0455 commit bd14cf9
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/utils/src/components/FilterDropdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,13 @@ const FilterDropdown: React.FC<DropdownProps> = (props) => {
const dropdownOpenProps =
compareVersions(version, '4.23.0') > -1
? {
visible: open || visible,
onVisibleChange: onOpenChange || onVisibleChange,
open: open || visible || false,
onOpenChange: onOpenChange || onVisibleChange,
}
: {
open: open || visible,
onOpenChange: onOpenChange || onVisibleChange,
visible: open || visible || false,
onVisibleChange: onOpenChange || onVisibleChange,
};

return wrapSSR(
<Dropdown
disabled={disabled}
Expand Down

0 comments on commit bd14cf9

Please sign in to comment.