Skip to content

limel-date-picker: Add internal validation for required fields #3839

@adrianschmidt-bot

Description

@adrianschmidt-bot

Background

This issue replaces #3646, which originally proposed hiding the clear button on required date-pickers. After discussion, we concluded that blocking users from clearing values isn't good UX.

What should happen

limel-date-picker should have internal validation similar to limel-select (see commit 04af5d9).

When a date-picker is:

  • marked as required
  • initially empty or has a value cleared by the user
  • and the user has interacted with it

...the component should automatically become invalid.

This allows forms to properly block submission when required date fields are empty, without preventing users from clearing values (which would be poor UX).

Related

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