yshavit / whatdid

What did I do all day?
MIT License
8 stars 0 forks source link

PTN autocomplete broken #317

Closed yshavit closed 1 year ago

yshavit commented 1 year ago

The interaction of autocomplete and selection is broken.

Repro:

  1. Start with two options, "one" and "two" (in that order, in the autocomplete box)
  2. Use the arrows to select "two": image
  3. Type "on": image

    The behavior should be:

    • ✅ autosuggest suggests "one"
    • ❌ the selection should move to "one"
  4. Type "three": image

    The behavior should be:

    • ✅ no autocomplete suggestion
    • ❌ the selection should be empty

Because the selection doesn't get updated, if the user then hits or , we autofill the selection. This means that with "two" selected, typing "on" results in the field containing "one" instead of "two".