[Tooltip] Provided classes produces console warnings when used around a Textfield
#25465
Comments
classes produces console warnings when used around a Textfieldclasses produces console warnings when used around a Textfield
|
@aepp Thanks for reporting this issue. While the warning is no longer present in v5.0.0-alpha.28. It doesn't change the fact that import React from "react";
import Tooltip from "@material-ui/core/Tooltip";
export default function Demo() {
return (
<Tooltip
title="test title"
classes={{
arrow: "arrow",
tooltip: "tooltip"
}}
>
<input />
</Tooltip>
);
}I would propose this fix: diff --git a/packages/material-ui/src/Tooltip/Tooltip.js b/packages/material-ui/src/Tooltip/Tooltip.js
index 336bcd67d2..9b84af6b46 100644
--- a/packages/material-ui/src/Tooltip/Tooltip.js
+++ b/packages/material-ui/src/Tooltip/Tooltip.js
@@ -224,6 +224,7 @@ const Tooltip = React.forwardRef(function Tooltip(inProps, ref) {
const {
arrow = false,
children,
+ classes: classesProp,
describeChild = false,
disableFocusListener = false,
disableHoverListener = false,@aepp Do you want to take care of it? |
|
@oliviertassinari I can take it @aepp if you don't mind |
|
@baterson sure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



When defining custom classes
tooltiporarrowon a Tooltip component used on a Textfield, the console shows warnings like:The keytooltipprovided to the classes prop is not implemented in ForwardRef(TextField). You can only override one of the following: root.Current Behavior😯
Warnings are present.
Expected Behavior🤔
There should be no warnings.
Steps to Reproduce🕹
Here is a sandbox demonstrating the issue: https://codesandbox.io/s/material-ui-issue-forked-hvgg2
Context🔦
Your Environment🌎
Tested in Chrome.
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: