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

[RFR] Fix SelectInput variant="standard" shows warning for unknown class #3988

Merged
merged 1 commit into from
Nov 15, 2019

Conversation

fzaninotto
Copy link
Member

Closes #3987

@fzaninotto fzaninotto added this to the 3.0.0 milestone Nov 15, 2019
@@ -95,7 +95,10 @@ function ResettableTextField({
classes={restClasses}
value={value}
InputProps={{
classes: { adornedEnd: props.select ? inputAdornedEnd : null },
classes:
props.select && variant === 'filled'
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't get the fix. Why is it needed to check the variant ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because the inputAdornedEnd class doesn't exist in the standard variant of MUI's TextField. Unfortunately, the list of classes of all variants isn't the same, hence the warning that we have to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants