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

close autocomplete drop down when user click right arrow key #158

Open
indrasenakatam opened this issue Jan 19, 2023 · 0 comments
Open

close autocomplete drop down when user click right arrow key #158

indrasenakatam opened this issue Jan 19, 2023 · 0 comments

Comments

@indrasenakatam
Copy link

indrasenakatam commented Jan 19, 2023

As part of our requirement when user enters autocomplete dropdown should close and update that value in the input field.

Currently this working fine when user press keyboard ENTER key OR mouse right click
the autocomplete dropdown closing like this same as happened when user press on keyboard right arrow.

even if right arrow updates the drop down also fine.

It would truly appreciate if you help on this. Thank you in advance

"@trevoreyre/autocomplete-vue": "^2.2.0",

Vue 2 composition API

<input
      v-model="hiddenSearchTerm"
      type="text"
      class="autocomplete-input search-bar__input__hidden"
    />
    <autocomplete
      ref="searchBarInput"
      :search="search"
      :placeholder="$t('search.placeholder')"
      :aria-label="$t('search.ariaLabel')"
      class="search-bar__input"
      @focus="activeField"
      @keydown.right="fillWithFirstSuggestion"
      @submit="submit"
    >
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

No branches or pull requests

1 participant