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

cascaded infinite select #17

Open
mquevedob opened this issue Mar 31, 2022 · 4 comments
Open

cascaded infinite select #17

mquevedob opened this issue Mar 31, 2022 · 4 comments

Comments

@mquevedob
Copy link

hello guys

could you recommend a way to make cascaded infinite select?

i figured out how to make the query on the second infinite select, but the thing is if I select another item on the 1st select, the 2nd select still has its previous values
so, how to I reset the values on the 2nd select ?

@mquevedob
Copy link
Author

guys? how can i reset an infinite select contents?

@mquevedob
Copy link
Author

mquevedob commented Mar 31, 2022

ok I implemented a "dirty trick" to pull this off

in the v-select tag I added

:reset-on-options-change='true'

and in the onOpen() function I called

this.paginatedObject = { data: [] }

to empty the options. This causes the v-select to reset

@coolsam726
Copy link
Contributor

How about just listening to the @change event in the first infinite select?

@mquevedob
Copy link
Author

Ok... but how do I reset the select content in change event ?

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

2 participants