Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

enricomad
Copy link

@enricomad enricomad commented Aug 27, 2021

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: #347

@enricomad enricomad marked this pull request as draft August 27, 2021 13:17
@enricomad enricomad marked this pull request as ready for review August 27, 2021 13:32
@enricomad enricomad changed the title fix(#347): change inputRef to ref to prevent runtime error fix(#347): change inputRef to ref to prevent runtime warning Aug 27, 2021
@enricomad enricomad marked this pull request as draft August 27, 2021 15:37
@enricomad enricomad marked this pull request as ready for review August 27, 2021 15:42
@enricomad enricomad changed the title fix(#347): change inputRef to ref to prevent runtime warning fix(#347): change inputRef to ref to prevent runtime error Aug 27, 2021
@dranitski
Copy link

upvote this fix

@damianpugliese
Copy link

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

@AhmedBHameed
Copy link

AhmedBHameed commented Jun 11, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants