-
Notifications
You must be signed in to change notification settings - Fork 265
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
fix: Remove search-specific properties from nodes on clear #367
Conversation
Pull Request Test Coverage Report for Build 1366
💛 - Coveralls |
There is likely a more elegant way to resolve this problem, but this was the least intrusive code I could think of. |
761fd0f
to
8ffde60
Compare
Apologies for the force push, it seems like my previous version wasn't a complete fix. I have identified the issue properly, it is caused by the "_isMatch" property, and have created a better solution. |
Code Climate has analyzed commit 55320e3 and detected 0 issues on this pull request. View more on Code Climate. |
Hey, thanks for sending this. I'll look into it and get it merged soon. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@mrchief any chance we could reopen this? |
Yes, sorry. This shouldn't have gotten closed. |
Ah... damn... |
I returned the branch to its original state (before the merge). If not, I will recreate the PR (lesson learned!) |
:) Reopen is still disabled. |
What does it do?
The "_isMatch" property is never cleared, so non-matching parents will still be shown (not greyed-out) and can be focused (i.e. navigation with the arrow keys)..
This fixes that issue by setting all parents to hidden, unless they themselves are a match. They will still be shown with keepTreeOnSearch, because the "matchInChildren" property is set to true.
Fixes # (issue)
No issueNumber
Type of change
Please delete options that are not relevant.
Checklist: