Skip to content
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

[fields] Fix placeholder override #12589

Merged
merged 2 commits into from Mar 28, 2024

Conversation

flaviendelangle
Copy link
Member

Fixes #12573

@flaviendelangle flaviendelangle added regression A bug, but worse component: pickers This is the name of the generic UI component, not the React module! labels Mar 28, 2024
@flaviendelangle flaviendelangle self-assigned this Mar 28, 2024
@mui-bot
Copy link

mui-bot commented Mar 28, 2024

Deploy preview: https://deploy-preview-12589--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 3fec8b6

Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hehe, was looking at the same problem, just didn't assign myself before validating the regression. 👌

P.S. It clearly wouldn't hurt having a test for it. 🙈

However, I'm not sure if we can support it for the "v7" accessible fields 🤷 Even the native <input type="date" /> element doesn't. 🤔

@flaviendelangle
Copy link
Member Author

Hehe, was looking at the same problem, just didn't assign myself before validating the regression

😆 Assignment is key

I will add a quick test for the v6.
I think for v7 we could treat that as an enhancement once we have a request.

@flaviendelangle
Copy link
Member Author

I added a test for both the field and textField slots

@flaviendelangle flaviendelangle marked this pull request as ready for review March 28, 2024 10:11
@flaviendelangle flaviendelangle merged commit 3341a1a into mui:master Mar 28, 2024
15 checks passed
@flaviendelangle flaviendelangle deleted the placeholder-override branch March 28, 2024 10:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: pickers This is the name of the generic UI component, not the React module! regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[pickers] It is no longer possible to override the placeholder value
3 participants