Skip to content

Show-if inputfields: hide by default, then show #179

@Toutouwai

Description

@Toutouwai

Short description of the enhancement

Currently a show-if inputfield is shown by default, and then hidden if the show-if condition evaluates false. This can take a moment or two, so results in a "flash of unhidden content" that can be a bit startling/confusing to users.

My suggestion is that this be reversed, so admin themes have a CSS rule that hides show-if inputfields with display: none (show-if inputfields already receive a InputfieldStateShowIf class), and then once the show-if condition is evaluated true the inputfield is shown (either with an inline style or through the addition of a class). This would avoid the flash of unhidden content.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions