Skip to content

Commit

Permalink
fix: dropdown: remove force focus on portaled dropdown (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
ychhabra-eightfold authored Oct 19, 2022
1 parent 7748cca commit a7e894a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,6 @@ export const Dropdown: FC<DropdownProps> = React.memo(
});
};

// auto focussing incase of portal=true
useEffect(() => {
if (portal && mergedVisible && refs?.floating?.current) {
refs.floating.current.focus();
}
}, [mergedVisible]);

const getDropdown = (): JSX.Element =>
mergedVisible && (
<div
Expand Down

0 comments on commit a7e894a

Please sign in to comment.