Skip to content

Commit

Permalink
Fix #6035: Dropdown changing value on press Tab Key
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Feb 23, 2024
1 parent a2a2f11 commit caab1bf
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 @@ -725,6 +725,7 @@ export const Dropdown = React.memo(
const selectItem = (event) => {
if (selectedOption !== event.option) {
updateEditableLabel(event.option);
setFocusedOptionIndex(-1);
const optionValue = getOptionValue(event.option);

if (props.onChange) {
Expand Down

0 comments on commit caab1bf

Please sign in to comment.