Skip to content

Commit

Permalink
fix(Tree): NavigationAction::Down if is_filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
lautarodragan committed Feb 19, 2025
1 parent 2214eb6 commit 74cc912
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/tree/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,9 @@ where
'outer: for (root_node_index, root_node) in nodes.iter().enumerate() {
let path = TreeNodePath::from_vec(vec![root_node_index]);

if root_node.is_match {
if path <= *initial_i {
continue;
}
if root_node.is_match && path > *initial_i {
new_path = path;
break 'outer;
} else if root_node.is_open {
for (path, node) in root_node.iter() {
let path = path.with_parent(root_node_index);
Expand Down

0 comments on commit 74cc912

Please sign in to comment.