Skip to content

Provide a possibility to hide required indicator when label is hidden #3707

@simasch

Description

@simasch

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions