-
Notifications
You must be signed in to change notification settings - Fork 942
Textfield with type="date" shows extra calendar icon in Firefox #5795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
It appears to be working for me in Chrome: https://jsbin.com/rowowusafu/edit?html,output ![]() Can you provide more info on what isn't working? You can show the picker by focusing the field and pressing the space key. You can also add an icon button that calls
|
Hi Liz, unfortunately your example does not work either. I have also published this problem in a fork repo (treeder/material#35 (comment)). Have you another idea? |
Are you referring to the browser's The datepicker itself still works, but in MWC the non-Material browser ![]() |
Date picker not opening in JS Bin might be due to this (it's about About the calendar picker indicator on Firefox, you might want to follow bug #1812397 and the related bugs mentioned at the end of the thread :) |
Yes, that's why I linked to the output.jsbin.com, but outputs are only available for a short amount of time before it reverts to the edit page. You can copy/paste the same code into a new jsbin, open the external output page, and then it'll work like it normally does.
Thanks for the links! Let's repurpose this issue to track hiding Firefox's new |
Hi, thank you for your replies. I have not found a general solution for Firefox, but it gives a possibility to make the icon transparent. The solution is compatible with most browsers (https://caniuse.com/mdn-css_properties_-webkit-text-fill-color).
Now i have the problem, how i can set this style for the input elements inside the shadow of md-outlined-text-field. Have you an idea? The only thing that surprises me is the fact that the repo of https://github.com/treeder/material has no problem with this issue. There the date-picker also works in chrome. |
@asyncLiz The new title irritates me a little. I continue to have the basic problem with the missing default calendar picker icon in Chrome and Edge (latest versions). |
I believe this is what Liz said was intentionally removed:
|
Ah ok, now i understand. But why was this removed intentionally? |
The browser calendar icons are removed because they don't match the Material Design spec. In Material, the text field's icon should be interactive, show a ripple and focus ring, and match the new updated icon symbols. The browser input icons are intentionally removed so they don't clash with Material icons that are intended to be the replacement. If this doesn't work for you, you can always create use the "field" building block component to create a text field that doesn't remove built-in browser calendar icons. |
Hi Liz, |
What is affected?
Component
Description
Hi there,
when i used a textfield with type="date" it working correctly in firefox, but not working correctly in chrome or edge. I miss the date-picker from browser...
Can you help me?
Reproduction
Use a simple is working in firefox, but not in chrome or edge (date-picker from browser is missing).
Workaround
no content
Is this a regression?
No or unsure. This never worked, or I haven't tried before.
Affected versions
2.3.0
Browser/OS/Node environment
Chrome: 134.0.6998.117 (not working)
Edge 112.0.1722.48 (not working)
Firefox: 137.0.1 (working)
OS: Ubuntu 24.10
Node: 22.12.0
NPM: 10.9.0
The text was updated successfully, but these errors were encountered: