-
Notifications
You must be signed in to change notification settings - Fork 1.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
TextArea's input is smaller than the component's height property #2475
Comments
Looks like essentially, So we must not be applying CSS modules to it, which is what I see here
it just needs to be changed to className: multiLine ? classNames(fieldStyles, 'spectrum-Field-field--multiline') : ''
where |
@snowystinger I made the change you suggested. However, it isn't as simple as I'd hoped. What I did learn is the order the css classes are being applied has changed. Through the process I discovered the class names show I started looking into how to fix that issue, but I'm out of my depth. It looks like it might be a problem in the |
o, I see, this is going to be helptext related then, @majornista i think that would be from your change to always render the helptext wrapper for focus #2422 ? |
Remove unused dependency.
… and removed from container Per code comment: adobe#2515 (review), resizing the TextArea should resize the container, even if height has been specified.
Remove unused dependency.
… and removed from container Per code comment: adobe#2515 (review), resizing the TextArea should resize the container, even if height has been specified.
Just ran into this as well. You can also see the issue in the storybook for a recent commit: https://reactspectrum.blob.core.windows.net/reactspectrum/a6deca5d364756b7847a8563d5536709cc3a808b/storybook/index.html?path=/story/textarea--custom-height-with-label |
🐛 Bug Report
The
TextArea
component no longer uses theheight
property correctly. The input is smaller than component's size.🤔 Expected Behavior
TextArea
should have its input display in the proper height.😯 Current Behavior
In React Spectrum v3.13.0 using
height="size-3000"
provided an input that is larger and matched the component's size. The new version (> 3.14.0) has the correct component size, but the input is smaller.💁 Possible Solution
🔦 Context
We are using the component in a Dialog, With the component and input sizes being mismatched it creates too much whitespace within the Dialog.
💻 Code Sample
I copied the
TextArea
component directly from our codebase into a codesandbox.io sandbox and you can observe the undesired behavior when switching between React Spectrum v3.13.0 and v3.14.0/1🌍 Your Environment
🧢 Your Company/Team
Adobe/Cloud Enablement Services - Management Tooling
🕷 Tracking Issue (optional)
The text was updated successfully, but these errors were encountered: