-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(combobox): controlled combobox onchange (#17858)
* fix(combobox): controlled combobox onchange * updated useEffect hook for controlled combobox so onChange doesn't fire twice when selection is made and selectedItem prop changes * updated onSelectedItemChange to not fire onChange if selectedItem is unchanged * unit tests * fix(combobox): controlled combobox onchange * updated comparison of new selectedItem to use react-fast-compare isEqual --------- Co-authored-by: Taylor Jones <[email protected]>
- Loading branch information
1 parent
d2b06d2
commit 57fce93
Showing
2 changed files
with
65 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters