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

Issue manually clearing and autopopulating #530

Open
Jjenkins3538 opened this issue Jul 11, 2023 · 0 comments
Open

Issue manually clearing and autopopulating #530

Jjenkins3538 opened this issue Jul 11, 2023 · 0 comments

Comments

@Jjenkins3538
Copy link

Hi, I have a pretty unique use case (from what I saw), the client would like the ability to add a new item to the drop down list and have it auto-select the select dropdown with the most recently created item. This is no problem, however the problem arises when trying to add a new item while the treeselect is already populated, and making the old item clear and the new one auto-select.

I tried clearing the v-model, I tried using vanilla javascript and removing/editing the inner and outer html of all the child components within the single-value select

.

I also tried manually using this.$refs.tree.select(this.$refs.tree.getNode(id)) and that will select the correct node the first time, but any subsequent time the node's value will change (if logged) but the html value in the input stays the same and does not update.

I've tried forcing the behavior anyway I know how.

Thanks!

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