You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error goes away if I pass TextField as a function like customInput={()=> <TextField {...props}/> } however, it doesn't render correctly because on every new render the component is rebuilt (I think) and the user loses focus from the field.
Anyway, the component works as is with the error. I was just wondering if there was a way around this. Thanks!
Hey! I'm the customInput prop and passing in a TextField from Material UI like the docs show and I keep throwing this Failed prop type error:
Warning: Failed prop type: Invalid prop "customInput" of type "object" supplied to "CurrencyFormat:, expected "function"
My component looks like this:
The error goes away if I pass TextField as a function like
customInput={()=> <TextField {...props}/> }
however, it doesn't render correctly because on every new render the component is rebuilt (I think) and the user loses focus from the field.Anyway, the component works as is with the error. I was just wondering if there was a way around this. Thanks!
"@material-ui/core": "^4.11.0"
"react": "^16.13.1"
"react-currency-format": "^1.0.0"
node v12.0.0
The text was updated successfully, but these errors were encountered: