Skip to content

Commit

Permalink
Merge pull request #3932 from tdeo/resettableSelectInput
Browse files Browse the repository at this point in the history
Fix resettable SelectInput with value doesn't show options on click
  • Loading branch information
fzaninotto authored Nov 7, 2019
2 parents d7d7b59 + ba48c62 commit 7275d7e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/ra-ui-materialui/src/input/ResettableTextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ const useStyles = makeStyles({
width: 24,
},
selectAdornment: {
marginRight: 12,
position: 'absolute',
right: 24,
},
inputAdornedEnd: {
paddingRight: 0,
},
});

Expand Down Expand Up @@ -79,6 +83,7 @@ function ResettableTextField({
const {
clearButton,
clearIcon,
inputAdornedEnd,
selectAdornment,
visibleClearButton,
visibleClearIcon,
Expand All @@ -90,6 +95,7 @@ function ResettableTextField({
classes={restClasses}
value={value}
InputProps={{
classes: { adornedEnd: props.select ? inputAdornedEnd : null },
endAdornment: resettable && value && (
<InputAdornment
position="end"
Expand Down

0 comments on commit 7275d7e

Please sign in to comment.