AutoComplete: onSelect
incorrectly called on mouse down, resulting in two selections
#7412
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Reproducer
https://stackblitz.com/edit/drzc4t?file=src%2FApp.jsx
Steps to reproduce the behavior
onSelect
callback has already run and done all the side effects it needed, only with the wrong itemTo complicate matters further, if you are adding elements to a list above the autocomplete element on select, the autocomplete and its dropdown will be pushed down as you click down, such that the element that you were going to click is no longer under the cursor, and nothing else is selected when you release the click, so only the undesired item ends up selected.
The text was updated successfully, but these errors were encountered: