Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autocomplete does not display options on focus, after a selected item is removed #183

Closed
sallaben opened this issue Dec 16, 2020 · 0 comments · Fixed by #186
Closed

Autocomplete does not display options on focus, after a selected item is removed #183

sallaben opened this issue Dec 16, 2020 · 0 comments · Fixed by #186

Comments

@sallaben
Copy link
Contributor

sallaben commented Dec 16, 2020

Hi, I really enjoy using attractions. I am using Autocomplete as a form of dropdown select. In most cases, my application will populate the Autocomplete with just 1-5 selection options, and require 0 characters typed before displaying those options.

I expect the autocomplete input to show these selection options each time the input is focused.

  • And indeed, on the first time the input component is focused, the selection options are displayed.
  • However, if you remove a selected item with X and then click back on the input, the selection options are not displayed until you type again.

My use of the component looks like this

  <Autocomplete 
    {getOptions}
    bind:selection
    minSearchLength=0
    maxOptions=1 />
@sallaben sallaben changed the title Autocomplete populates initial selection options on first focus, but not subsequent focuses Autocomplete populates initial selection options on focus, but not after a selected item is removed Dec 16, 2020
@sallaben sallaben changed the title Autocomplete populates initial selection options on focus, but not after a selected item is removed Autocomplete does not display options on focus, after a selected item is removed Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant