Skip to content

[UFormField] Expose the UForm dirty property in the slots #5226

@fabiiomiiguel

Description

@fabiiomiiguel

Package

v4.x

Description

Currently, the UFormField component exposes the error property through its default slot, allowing developers to easily handle validation messages and UI states.

It would be very useful if the dirty property from UForm was also exposed in the slots, so that we could check whether a field has already been interacted with or validated at least once.

This would allow for more precise control over when to display validation messages or apply visual feedback to the user (e.g., showing errors only after a field has been touched).

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageAwaiting initial review and prioritizationv4#4488

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions