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

[FormControl/Textarea] FormControl with TextArea child displays as invalid on page load #419

Closed
bsansone opened this issue Feb 19, 2020 · 2 comments

Comments

@bsansone
Copy link

Describe the bug
FormControl with TextArea child displays as invalid on page load.

Expected Behavior
Page should load and FormControl with Textarea should not be in an invalid state.

To Reproduce

Suggested solution(s)
Upgrade react and react-dom from 16.9 to current (16.12)

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Firefox Developer Edition
  • Version 74.0b4 (64-bit)

Additional context
N/A

@gopinav
Copy link

gopinav commented Feb 19, 2020

Hello - Can you please elaborate how the text area is invalid on page load? Unable to see the issue in the codesandbox link.

@bsansone
Copy link
Author

bsansone commented Feb 19, 2020

@gopinav On page load, the Textarea is rendered with a red border as if the form has been submitted and the Textarea was left empty causing the isInvalid state of the wrapping FormControl.

It looks like the issue is specific to Firefox, it works fine in Chrome, do you have access to the Firefox Developer edition browser?


It looks like this a react issue facebook/react#16402, and it was addressed in this PR facebook/react#16578

Going to close.

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

No branches or pull requests

2 participants