Skip to content

Commit

Permalink
Update packages/react/src/components/Dropdown/Dropdown.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: andrew <emyarod@users.noreply.github.com>
  • Loading branch information
Shankar-CodeJunkie and emyarod authored Oct 18, 2024
1 parent ea51c4e commit ab7a3da
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/react/src/components/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,7 @@ const Dropdown = React.forwardRef(
// NOTE: does not prevent click
evt.preventDefault();
// focus on the element as per readonly input behavior
if (mergedRef !== undefined) {
mergedRef?.current?.focus();
}
mergedRef?.current?.focus();
},
onKeyDown: (evt: React.KeyboardEvent<HTMLButtonElement>) => {
const selectAccessKeys = ['ArrowDown', 'ArrowUp', ' ', 'Enter'];
Expand Down

0 comments on commit ab7a3da

Please sign in to comment.