AutoComplete: onSelect
incorrectly called on mouse down, resulting in two selections with forceSelection
#7412
Labels
Type: Bug
Issue contains a defect related to a specific component.
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: