Skip to content

fix: find slotted children via ComponentUtil.getAllChildren - #142

Merged
mcollovati merged 1 commit into
mainfrom
fix/get-all-children
Jul 31, 2026
Merged

fix: find slotted children via ComponentUtil.getAllChildren#142
mcollovati merged 1 commit into
mainfrom
fix/get-all-children

Conversation

@web-padawan

Copy link
Copy Markdown
Member

Description

Related to vaadin/flow-components#9280
Related to vaadin/flow-components#9743

Replaces #89

Added usage of ComponentUtil.getAllChildren() helper to handle components that filter out non-default content from getChildren() - particularly, Card and Dialog (the latter was changed in 25.3 alpha - see PR above).

Type of change

  • Bugfix

The locator only walked component.children plus virtual children, so
components a component excludes from getChildren() (Card slots, Dialog
header/footer on 25.3) were not found. Union the reported children with
ComponentUtil.getAllChildren, which walks the element tree (regular and
virtual children, descending through non-component wrappers) regardless
of any getChildren() override, and keep component.children so children
held outside the element tree (ContextMenu items in MenuManager) stay
reachable.
@mcollovati
mcollovati merged commit c06cab4 into main Jul 31, 2026
6 checks passed
@mcollovati
mcollovati deleted the fix/get-all-children branch July 31, 2026 06:07
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.

2 participants