You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 27, 2022. It is now read-only.
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!
The text was updated successfully, but these errors were encountered:
It seems that clearing the first character with backspace doesn't trigger the handleChange method but when the text is selected entirely and backspace is pressed the method gets called.
I don't have code to replicate but it's easy on the demo page:
"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!
The text was updated successfully, but these errors were encountered: