Skip to content

Date Picker: Clearable Disabled if Date Picker Disabled #2262

@bnski

Description

@bnski

Flux version

v2.6.0

Livewire version

v3.6.4

Tailwind version

v4.1.11

Browser and Operating System

Safari

What is the problem?

Currently, when a flux:date-picker has the disabled attribute set to true, the clear button (from the clearable attribute) remains functional. This creates inconsistent UX where users can clear a disabled field but cannot edit it.

Code snippets to replicate the problem

  <flux:date-picker
      clearable
      :disabled="true"
      ...
  />

The date picker input is disabled (grayed out, not editable), but the clear button is still clickable and allows the user to modify the dates.

Screenshots/ screen recordings of the problem

image

How do you expect it to work?

When disabled="true", the clear button should also be disabled or hidden automatically. Users shouldn't be able to clear a field they cannot edit.

Please confirm (incomplete submissions will not be addressed)

  • I have provided easy and step-by-step instructions to reproduce the bug.
  • I have provided code samples as text and NOT images.
  • I understand my bug report will be closed if I haven't met the criteria above.

Metadata

Metadata

Assignees

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