Skip to content

Commit

Permalink
Sebastian's review
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Oct 4, 2020
1 parent e5f37ee commit cca09c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/material-ui/src/Tooltip/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,11 @@ const Tooltip = React.forwardRef(function Tooltip(props, ref) {
};

if (process.env.NODE_ENV !== 'production') {
childrenProps['data-mui'] = true;
childrenProps['data-mui-internal-clone-element'] = true;

// eslint-disable-next-line react-hooks/rules-of-hooks
React.useEffect(() => {
if (childNode && !childNode.getAttribute('data-mui')) {
if (childNode && !childNode.getAttribute('data-mui-internal-clone-element')) {
console.error(
[
'Material-UI: The `children` component of the Tooltip is not forwarding its props correctly.',
Expand Down

0 comments on commit cca09c1

Please sign in to comment.