-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Input and TextArea ref change was a major breaking change #3631
Comments
Can you please clarify?
|
Here's a small, contained example:
I may just be using this wrong, but it inputRef has changed for me. |
Please provide whole use case (but it keep it minimal), it seems that I see the wrong usage... Why you need to use refs there at all? <Input
ref={input => { input.inputRef /* don't do this, it a private API 💣 */ }}
/> |
Closing for housekeeping, will reopen on a reply. |
Sorry, been all over the place. I think it's because you need to get to the actual input element, not a ref to the component. |
Can you please provide the usecase? As I see <Input input={{ 'data-lpignore': someCondition ? true : undefined }} |
#3453 is a breaking change. If you relied on callback refs before, any ref you have is now broken.
The text was updated successfully, but these errors were encountered: