-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
breaking(TextArea): remove autoHeight
prop
#3465
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3465 +/- ##
==========================================
- Coverage 99.89% 99.89% -0.01%
==========================================
Files 172 172
Lines 2814 2796 -18
==========================================
- Hits 2811 2793 -18
Misses 3 3
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #3465 +/- ##
==========================================
- Coverage 99.89% 99.89% -0.01%
==========================================
Files 172 172
Lines 2814 2796 -18
==========================================
- Hits 2811 2793 -18
Misses 3 3
Continue to review full report at Codecov.
|
Released in |
@layershifter Hi, I'm trying to migrate to your new implementation with TextAreaAutosize to work with forms in a Semantic Accordion. However, I can't seem to get the textarea value in the onChange function. I looked at your Sandbox and I also get Do you have any idea as to why ? Thanks in advance ! |
You should use: onChange={e => this.setState({ value: e.target.value })} I've update CodeSandbox to reflect this 👍 |
Thanks for your swift answer ! It works as a charm 👍 |
Fixes #3418.
BREAKING CHANGES
This PR removes the
autoHeight
prop from theTextArea
component.Motivation
We had numerous issues with
TextArea
component andautoHeight
prop:I had a conversation with team from Ukraine that continuously uses SUIR and they said that
autoHeight
is buggy and they are usingreact-textarea-autosize
, too 😼So, as @levithomason originally proposed I will suggest to use
react-textarea-autosize
:Before
After
I also created a Codesandbox example with how-tos, https://codesandbox.io/s/1v67906ll4. It will be available on the Prototypes page after the next release, but you can start to migrate right now.