Closed
Bug 1465979
Opened 6 years ago
Closed 4 years ago
input type="date" doesn't clear when disabled
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
DUPLICATE
of bug 1654500
People
(Reporter: graham.brereton, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0 Build ID: 20180516032328 Steps to reproduce: * Create an HTML document containing a disabled date input with a value * Use JavaScript to set value='' on the input See https://jsfiddle.net/dugrgrdy/2/ - this shows disabled and enabled date inputs, with and without initial values, with the disabled input having a value of '' assigned in JavaScript behaving inconsistently with the rest of the cases. Actual results: The value of the input was not cleared Expected results: The value of the input should be cleared when setting value=''
Comment 1•6 years ago
|
||
Hi Graham, I tested this on Mac OS X 10.12 with FF Nightly 62.0a1(2018-06-04) and I can reproduce this issue. I also tested with the FF 60 release version and the issue is reproducible.
Status: UNCONFIRMED → NEW
status-firefox60:
--- → affected
status-firefox61:
--- → affected
status-firefox62:
--- → affected
Component: Untriaged → DOM: Core & HTML
Ever confirmed: true
Product: Firefox → Core
Version: 60 Branch → Trunk
Updated•6 years ago
|
Priority: -- → P3
Updated•6 years ago
|
Blocks: html-forms
Hi,
this problem still occurs on latest firefox versions (Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:74.0) Gecko/20100101 Firefox/74.0).
It's very problematic, because I cannot (for example) use date fields and Vue.js together without doing some hacks.
Meanwhile I created my own Vue.js date field component, because the solution to circumvent this bug was a bit annoying and intrusive to implement everywhere.
I've attached an html file to reproduce this bug using either plain javascript or Vue.js, maybe it can be useful to the firefox team.
Note also that Chrome and Edge don't have this "clearing disabled date fields" bug.
It seems that it's the only type of input field that cannot (sadly) be correctly cleared in firefox.
Thierry.
Updated•4 years ago
|
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•