This repository was archived by the owner on Oct 27, 2022. It is now read-only.
This repository was archived by the owner on Oct 27, 2022. It is now read-only.
Autocomplete onChange does not fire when backspace-deleting last character #56
Open
Description
I don't have code to replicate but it's easy on the demo page:
- In the autocomplete example, type "a"
- "Afghanistan" with be the full value; "A" will not be selected; "fghanistan" will be selected; the cursor is between "A" and "fghanistan" (selectionStart=1, selectionEnd=${"Afghanistan".length}).
- Press backspace
- Observe "onChange" is not fired.
"onChange" is fired for all other cases that I expect it to be fired. Just not this one.
I am trying to figure out why this happens. I think I've gotten a decent grasp on how Autocomplete.jsx works, but I have not figured out what is canceling or preventing this event.
Any help or insights would be appreciated. Thank you!
Metadata
Metadata
Assignees
Labels
No labels