Skip to content

Commit

Permalink
Cancel icon replaces endAdornment in ResettableTextField
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto authored Oct 31, 2019
1 parent 2c4ece1 commit 685a30c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/ra-ui-materialui/src/input/ResettableTextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,18 @@ function ResettableTextField({
/>
</IconButton>
</InputAdornment>
{endAdornment}
</Fragment>
) : (
endAdornment
endAdornment || (
<InputAdornment
position="end"
classes={{
root: props.select ? selectAdornment : null,
}}
>
<IconButton />
</InputAdornment>
)
),
...InputPropsWithoutEndAdornment,
}}
Expand Down

0 comments on commit 685a30c

Please sign in to comment.