Skip to content

Commit

Permalink
Merge pull request #6036 from melloware/PR6035
Browse files Browse the repository at this point in the history
Fix #6035: Dropdown changing value on press Tab Key
  • Loading branch information
nitrogenous committed Mar 18, 2024
2 parents 364a24e + caab1bf commit 64fe7b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/lib/dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ export const Dropdown = React.memo(
const selectItem = (event) => {
if (selectedOption !== event.option) {
updateEditableLabel(event.option);
setFocusedOptionIndex(-1);
const optionValue = getOptionValue(event.option);
const selectedOptionIndex = findOptionIndexInList(event.option, visibleOptions);

Expand Down

0 comments on commit 64fe7b2

Please sign in to comment.