diff --git a/packages/ra-ui-materialui/src/input/ResettableTextField.js b/packages/ra-ui-materialui/src/input/ResettableTextField.js index 7d73691ca38..9827970b19e 100644 --- a/packages/ra-ui-materialui/src/input/ResettableTextField.js +++ b/packages/ra-ui-materialui/src/input/ResettableTextField.js @@ -1,4 +1,4 @@ -import React, { Fragment, useState, useCallback } from 'react'; +import React, { useState, useCallback } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import InputAdornment from '@material-ui/core/InputAdornment'; @@ -100,49 +100,46 @@ function ResettableTextField({ classes: { adornedEnd: props.select ? inputAdornedEnd : null }, endAdornment: resettable && value ? ( - - + - - - - - + /> + + ) : ( - endAdornment || ( + endAdornment || + (resettable && ( - + - ) + )) ), ...InputPropsWithoutEndAdornment, }}