Steps to reproduce
The content of HTML input fields of type “date” cannot be cleared in Microsoft Edge - regardless of the “required” attribute.
Steps to reproduce:
- Create an HTML file with the following content using a text/html editor of your choice and save it:
<input type="date" />
Open the HTML file created in step 1 with Microsoft Edge.
Select any date of your choice in the date input field unsing the date picker.
Try to clear the date selected in step 3 - there is no way to do so.
From my point of view, this issue is considered to be fixed as soon as there is a way to clear the content if date input fields in Microsoft Edge.
Comments and activity
- Microsoft Edge Team
Changed Assigned To to “Ibrahim O.”
Changed Assigned To to “Bogdan B.”
Please make the date input field work like any other input field does. This issue is very frustrating when developing applications. Especially when you have fields that are prepopulated serverside and can not be cleared by the user.
- Microsoft Edge Team
Changed Status to “External”
Thank you for the report, the issue is known and already tracked in our system
This issue has been resolved External. This means this issue may require a new feature to be implemented or other work that is more significant than a typical bug. You may be able to find more information on this issue by searching for related features on status.microsoftedge.com and uservoice.microsoftedge.com.
Thank you very much so far! However, I tried to find the bug on status.microsoftedge.com as well as on uservoice.microsoftedge.com, but I did not find it. Could you please add the direct links here? Thank you very much and best regards.
The best I can find on status is this: https://developer.microsoft.com/en-us/microsoft-edge/platform/status/daterelatedinputtypes/?q=date-related%20input%20types
I’ve created a user voice entry here: https://wpdev.uservoice.com/forums/257854-microsoft-edge-developer/suggestions/18411796-date-input-should-allow-the-entry-of-empty-string
This is now pushing a year since last comment, any news or update on this?
Jon W. They aren’t fixing it as it has an easy work around. Simply use another browser and hey presto your issue is gone.
@Martin if it was that easy… It is so sad to see Microsoft doing the same things to EDGE that they did to IE.
Still waiting to be able to take out the band aid for this, browsers never take the brunt, we are always in the middle having to mask browser bugs so users can still use their buggy browser since it is considered to my company a current browser which we support. Though I don’t think anyone is actually using it except QA.
There are roughly 3 billion Internet users. According to statcounter bing has 2% (1 in 50) of them. That would be very roughly 60 million people using Edge. I’d say that’s worth supporting. But who knows, if MS fix this issue, maybe they would have a bigger percentage.
Of course I meant Edge when I wrote bing.
The only thing I can’t understand is why you would build an input without having a way to clear out the data in that input. Just seems like bad design from the start.
The only workaround I can think of is to have a Button next to the Input with an on click event that will clear the value of the input.
Seems pretty ridiculous that it has not been fixed yet!
Chrome has a small “x” that clears the date that works well. Can Edge implement it that way? If Edge requires a separate button as suggested above, it will look redundant when using Chrome.