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

min-len conflits when using two autocomplete in the same page #76

Open
benjaminbra opened this issue Oct 23, 2018 · 0 comments
Open

min-len conflits when using two autocomplete in the same page #76

benjaminbra opened this issue Oct 23, 2018 · 0 comments

Comments

@benjaminbra
Copy link

When creating two autocomplete in the same page. The min-len of the last autocomplete declared is also used by the other autocomplete.

<v-autocomplete :items="searchCommunesItems" 
v-model="form.commune" 
:min-len="1" 
:get-label="getLabelCommune"
:component-item='template' 
@update-items="searchCommunes" 
@change="checkCommuneInput" 
:auto-select-one-item="false" 
:input-attrs="{id: 'commune', autocomplete:'off'}"></v-autocomplete>
<v-autocomplete :items="searchEtbsItems"
v-model="form.etablissement" 
:min-len="2" 
:get-label="getLabelEtabs" 
:component-item='template' 
@update-items="searchEtbs" 
:auto-select-one-item="false" 
@change="checkEtabInput" 
:input-attrs="{id: 'etab', autocomplete:'off'}"></v-autocomplete>

In the exemple, i use a first autocomplete with min-len at 1 and a second autocomplete with min-len at 2.
But when i try to search with the first autocomplete, i need 2 chars before having a result showing up.

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