react-json-view
react-json-view copied to clipboard
Error on opening property editor
Warning: React does not recognize the
inputRef
prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercaseinputref
instead. If you accidentally passed it from a parent component, remove it from the DOM element.
Getting this in console in my React 17 project
i got the the same warning
fwiw, this was what it looked like for me. I'm using MaterialUI as well. I wonder if it's a React DevTools problem...?
I am having the same warning and am not using MaterialUI. It appear every time the variable-editor modal appear. Does anyone have ideas/suggestions?
It was caused by the VariableEditor passing prop "inputRef" to AutosizeTextarea. AutosizeTextarea had changed to use prop "ref" instead of "inputRef", and the prop "inputRef" was not handled and passed to the textarea element, which React does not recognize and gave that warning.
@alexchanwk is there a solution for this bug
got same problem with react-json-view: 1.21.3, react: 17.0.1, antd: 4.16.13,
I have the same problem. Is there a solution?
@sp0033212000 @tjnk24 #374 solves the issue, but i did not get any updates on it since i opened it.
upvote the fix by @enricomad https://github.com/mac-s-g/react-json-view/pull/374 :up: