Description
We hide components from of a FormItem by using formItem.getChildren()
Unfortunately, the newly added required indicator is not slotted.
So for example, if all children are hidden in Vaadin 14 the FormItem had a height of 0 now as the required indicator stays the FormItem keeps the height.
Expected outcome
Required Indicator should be slotted.
Minimal reproducible example
As described
Steps to reproduce
As described
Environment
Vaadin version(s): 23
OS: Windows 11
Browsers
Issue is not browser related