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

select event updates previous value (v-model) #1353

Closed
riux opened this issue Oct 21, 2020 · 0 comments · Fixed by #1620
Closed

select event updates previous value (v-model) #1353

riux opened this issue Oct 21, 2020 · 0 comments · Fixed by #1620
Assignees
Labels
Milestone

Comments

@riux
Copy link

riux commented Oct 21, 2020

<multiselect 
        v-model="contacts" 
       :multiple="true"
        label="name" 
        @select="selectItem"
        track-by="name" 
        :options="persons" 
        :loading="isLoading" 
        open-direction="bottom" 
        @search-change="searchContacto"
      ><multiselect/>


selectItem(){
 console.log(this.contacts) // print value before select. print : select op1, print [], select op2 print [op1], ...
}
@riux riux changed the title Select event update value v-model before select event updates previous value (v-model) Oct 21, 2020
@akki-jat akki-jat added the bug label Oct 29, 2022
@akki-jat akki-jat added this to the 2.1.7 release milestone Oct 29, 2022
@akki-jat akki-jat self-assigned this Oct 29, 2022
@akki-jat akki-jat linked a pull request Nov 11, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants