Fix accessing properties within the MenuItem

We were not visiting properly the MenuItem from
`recurse_elem_including_sub_components_no_borrow`
(`recurse_elem_including_sub_components` was correctly modified before)

Fixes #8090



The tree-sitter test fails because the output contained `ERROR` as it matched this string
This commit is contained in:
Olivier Goffart 2025-04-09 15:06:32 +02:00 committed by GitHub
parent 78a3757b7f
commit 82adeb47b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -2212,6 +2212,11 @@ pub fn recurse_elem_including_sub_components_no_borrow<State>(
.borrow()
.iter()
.for_each(|p| recurse_elem_including_sub_components_no_borrow(&p.component, state, vis));
component
.menu_item_tree
.borrow()
.iter()
.for_each(|c| recurse_elem_including_sub_components_no_borrow(c, state, vis));
}
/// This visit the binding attached to this element, but does not recurse in children elements