Closed Bug 1478654 Opened 6 years ago Closed 11 months ago

Disabled date input has a clear button

Categories

(Core :: Layout: Form Controls, defect, P3)

61 Branch
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mcorteel, Unassigned)

References

(Blocks 1 open bug, )

Details

(4 keywords)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0
Build ID: 20180704194937

Steps to reproduce:

A disabled date input with a value (see https://jsfiddle.net/jr9oq2e5/3/ for example).


Actual results:

The input shows a clear button on Firefox 61.


Expected results:

Since the input cannot be cleared (except for Bug 1461509), the button should not appear. May be linked to Bug 1465979?
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0
20180726100339
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Form Controls
Ever confirmed: true
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Priority: -- → P3
See Also: → 1521212
Assignee: nobody → svoisen
Severity: normal → S4
Status: NEW → ASSIGNED

shorlander: Do you have thoughts on this? I found it slightly confusing to see the reset button in the disabled state. (And Emilio points out if we do change this we'd want to change it in the file input too.)

Flags: needinfo?(shorlander)

(Maybe not, because other browsers don't, and the file input's button is more prominent, but if Stepen thinks otherwise that's fine for me too)

The bug assignee didn't login in Bugzilla in the last 7 months.
:emilio, could you have a look please?
For more information, please visit auto_nag documentation.

Assignee: sean → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(emilio)
Flags: needinfo?(stephen)
Flags: needinfo?(emilio)
Depends on: 1676068, 1811187

The bug was fixed some time ago, but especially with the bug 1676068 replacing the Clear button with a Calendar control that kept the logic that this button is not appearing when a field is disabled.

Note that the bug 1811187 added a Clear button to the date picker dialog itself, but it is not available for disabled and readonly inputs. The decision to show the Calendar button for these fields is tracked by 1801910

See Also: → 1801910
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: