Skip to content

Commit

Permalink
not working, rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Feb 25, 2021
1 parent 907584b commit 41666f2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
15 changes: 13 additions & 2 deletions packages/material-ui/src/InputBase/InputBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
*/
Expand Down
10 changes: 9 additions & 1 deletion packages/material-ui/src/Tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;

Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 41666f2

Please sign in to comment.