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
[Feature Request] Treeview search #5621
Comments
To clarify: While the nodes retain their "selected" status visually, their keys are removed from the |
This is a tricky one. Because the expected behavior that you describe is not what will happen when this bug is fixed. Since the filtering is happening outside of the component, it has no way of knowing that previously selected items that are filtered out are supposed to 'stay' in the selected set, and return when you reset the filter. All it knows is that it is given a new set of items, and it creates the tree from that, resetting state in the process. I do get what you're trying to achieve, but I don't see an immediate easy solution, other than internalizing a filter function in the component.. |
I might have a solution in mind, not sure if this helps or not. |
Versions and Environment
Vuetify: 1.3.8
Vue: 2.5.17
Browsers: Chrome 70.0.3538.102
OS: Windows 10
Steps to reproduce
Check any node and search for another node
Expected Behavior
The selected items should not be changed
Actual Behavior
The selected items will removed if not found in the search results
Reproduction Link
https://codepen.io/anec/pen/YRVged?&editors=101
The text was updated successfully, but these errors were encountered: