diff --git a/packages/material-ui/src/InputBase/InputBase.js b/packages/material-ui/src/InputBase/InputBase.js index 9193d92fcde810..fdfb67001be8a0 100644 --- a/packages/material-ui/src/InputBase/InputBase.js +++ b/packages/material-ui/src/InputBase/InputBase.js @@ -212,14 +212,13 @@ export const InputBaseComponent = experimentalStyled( }), }; }); - /** * `InputBase` contains as few styles as possible. * It aims to be a simple building block for creating an input. * It contains a load of style reset and some state logic. */ const InputBase = React.forwardRef(function InputBase(inProps, ref) { - const { isRtl, theme, ...props } = useThemeProps({ props: inProps, name: 'MuiInputBase' }); + const props = useThemeProps({ props: inProps, name: 'MuiInputBase' }); const { 'aria-describedby': ariaDescribedby, autoComplete, @@ -256,6 +255,10 @@ const InputBase = React.forwardRef(function InputBase(inProps, ref) { startAdornment, type = 'text', value: valueProp, + /* eslint-disable-next-line react/prop-types */ + isRtl, + /* eslint-disable-next-line react/prop-types */ + theme, ...other } = props; @@ -568,6 +571,10 @@ InputBase.propTypes = { * Override or extend the styles applied to the component. */ classes: PropTypes.object, + /** + * @ignore + */ + className: PropTypes.string, /** * The color of the component. It supports those theme colors that make sense for this component. * The prop defaults to the value (`'primary'`) inherited from the parent FormControl component. @@ -665,6 +672,10 @@ InputBase.propTypes = { * You can pull out the new value by accessing `event.target.value` (string). */ onChange: PropTypes.func, + /** + * @ignore + */ + onClick: PropTypes.func, /** * @ignore */ diff --git a/packages/material-ui/src/Tooltip/Tooltip.js b/packages/material-ui/src/Tooltip/Tooltip.js index 6e1516402745d9..fbab630f190b10 100644 --- a/packages/material-ui/src/Tooltip/Tooltip.js +++ b/packages/material-ui/src/Tooltip/Tooltip.js @@ -217,7 +217,7 @@ function composeEventHandler(handler, eventHandler) { } const Tooltip = React.forwardRef(function Tooltip(inProps, ref) { - const { isRtl, theme, ...props } = useThemeProps({ props: inProps, name: 'MuiTooltip' }); + const props = useThemeProps({ props: inProps, name: 'MuiTooltip' }); const { arrow = false, children, @@ -242,6 +242,10 @@ const Tooltip = React.forwardRef(function Tooltip(inProps, ref) { title, TransitionComponent = Grow, TransitionProps, + /* eslint-disable-next-line react/prop-types */ + isRtl, + /* eslint-disable-next-line react/prop-types */ + theme, ...other } = props; @@ -678,6 +682,10 @@ Tooltip.propTypes = { * Override or extend the styles applied to the component. */ classes: PropTypes.object, + /** + * @ignore + */ + className: PropTypes.string, /** * Set to `true` if the `title` acts as an accessible description. * By default the `title` acts as an accessible label for the child.