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

fix: Search focus on key and values #5

Merged
merged 3 commits into from Mar 29, 2022
Merged

Conversation

victorbotamedi
Copy link
Contributor

Depends on #3

Context

The current search focus didn't know if the focus was on a key or value match, so when a node was focused and had matches in both key and value, both matches were being highlighted at the same time.

@@ -185,6 +185,7 @@ class NodeViewModelState extends ChangeNotifier {
/// The return [Map<String, NodeViewModelState>] has the same structure as
/// the decoded [object], except that every class, array and property is now
/// a [NodeViewModelState].
@visibleForTesting
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tags can be removed right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, I want to use these methods just for testing purposes.

@victorbotamedi victorbotamedi merged commit 5ec563e into main Mar 29, 2022
@victorbotamedi victorbotamedi deleted the fix-search-focus branch March 29, 2022 13:30
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

Successfully merging this pull request may close these issues.

None yet

2 participants