react-json-view
react-json-view copied to clipboard
fix(#347): change inputRef to ref to prevent runtime error
Motivation
When editing (focusing) an attribute value, VariableEditor causes react_devtools_backend to throw a runtime error due to usage of unrecognized attribute inputRef
(instead of ref
) in AutosizeTextarea component.
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 lowercase `inputref` instead. If you accidentally passed it from a parent component, remove it from the DOM element.
AutosizeTextarea docs related issue: https://github.com/mac-s-g/react-json-view/issues/347
upvote this fix
Some news for this Issue? The library is the best in my opinion but with this Issue I can't use it
@mac-s-g Can you consider this PR as a fix? Appreciate your time.