react-spectrum
5baa76f7 - Prevent menu flicker when closing ComboBox via blur (#4060)

Commit
2 years ago
Prevent menu flicker when closing ComboBox via blur (#4060) * Revert "Prevent ComboBox item selection if menu is closing (#3999)" This reverts commit 8c613978cd702e75867826024431c3c3576e49d7. * Prevent flicker when menu is closed via clicking outside the popover * move from ref to state tracker for filtered collection also memos useFilter return so that filteredCollection isnt updated every single render * adding controlled test * replace useEffect in favor of updating the lastCollection just before close * Only updating lastCollection if we are going from open to close * fixing tests
Author
Parents
Loading