Skip to content

Commit

Permalink
Fix #7576: Dropdown reset focused index on Clear (#7578)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Jan 7, 2025
1 parent 3d5c790 commit fe6ef36
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 @@ -695,6 +695,7 @@ export const Dropdown = React.memo(
}

updateEditableLabel();
setFocusedOptionIndex(-1);
};

const selectItem = (event) => {
Expand Down

0 comments on commit fe6ef36

Please sign in to comment.