Skip to content
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
@dminkovsky

Description

@dminkovsky

I don't have code to replicate but it's easy on the demo page:

  1. In the autocomplete example, type "a"
  2. "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}).
  3. Press backspace
  4. 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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions