react-json-view icon indicating copy to clipboard operation
react-json-view copied to clipboard

fix(#347): change inputRef to ref to prevent runtime error

Open enricomad opened this issue 3 years ago • 3 comments

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

enricomad avatar Aug 27 '21 13:08 enricomad

upvote this fix

dranitski avatar Dec 13 '21 10:12 dranitski

Some news for this Issue? The library is the best in my opinion but with this Issue I can't use it

damianpugliese avatar May 07 '22 18:05 damianpugliese

@mac-s-g Can you consider this PR as a fix? Appreciate your time.

AhmedBHameed avatar Jun 11 '22 20:06 AhmedBHameed