Skip to content

Commit

Permalink
Merge pull request #3988 from marmelab/fix-adornerdEnd-class-on-selec…
Browse files Browse the repository at this point in the history
…t-standard

[RFR] Fix SelectInput variant="standard" shows warning for unknown class
  • Loading branch information
djhi authored Nov 15, 2019
2 parents 8916552 + 8634bdd commit 05f1082
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ra-ui-materialui/src/input/ResettableTextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ function ResettableTextField({
classes={restClasses}
value={value}
InputProps={{
classes: { adornedEnd: props.select ? inputAdornedEnd : null },
classes:
props.select && variant === 'filled'
? { adornedEnd: inputAdornedEnd }
: {},
endAdornment: resettable && value && (
<InputAdornment
position="end"
Expand Down

0 comments on commit 05f1082

Please sign in to comment.