[英]Failed prop type: Invalid prop `type` of type `symbol` supplied to `ForwardRef(InputBase2)`, expected `string`
Material UI TextField is causing this error. Material UI TextField 导致此错误。 I have the prop of type set to password like this
我将类型的道具设置为密码,如下所示
type="password"
It is not working as it is not hiding the field in the browser and causing the error in the console.它不起作用,因为它没有在浏览器中隐藏该字段并导致控制台中出现错误。 What is this type "Symbol" anyways
这种类型的“符号”到底是什么
Solved it!解决了! the prop "InputProp" was causing the issue.
道具“InputProp”导致了这个问题。 if it's null, it causes that issue.
如果它为空,则会导致该问题。 I was dynamically setting it so it was null at some points
我是动态设置的,所以在某些时候它是空的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.