-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
bug: ion-textarea autogrow with long text #24793
Comments
@tetkosimi can you provide a screenshot/video of the issue you are experiencing? Comparing against your reproduction, I am seeing the same display on the "Wrong" and "Fix" version. Thanks! |
Hi @sean-perkins, here's a screenshot: You're right, I just checked this issue on macOS with the latest Google Chrome and also couldn't reproduce, but I can still reproduce it on Window 10 with the latest Google Chrome. |
I've also checked on Windows 10 with Firefox, and the big gap is there, however I can't reproduce it on Android. It seems like this is just some kind of native scroll or scrollbar related issue on Windows. |
@tetkosimi thanks for the screenshot! I'm noticing similar behavior on MacOS with Firefox (renders incorrectly and eventually repaints correctly). Could you try this dev build against your local with Windows 10?
The build is off this PR that I started awhile ago to re-approach our auto-grow implementation. It appears to resolve the issue for Firefox on Mac, curious if it'll do the same against Windows. Thanks! |
I've tried the dev build and it resolves the issue on Windows too. |
Thanks for the issue. This has been resolved via #24205 and a fix will be available in an upcoming release of Ionic. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Prerequisites
Ionic Framework Version
Current Behavior
When textarea contains long text, and auto-grow function is turned on, a big gap remains at the bottom of textarea. The gap is getting bigger as the text gets longer.
Expected Behavior
Calculate the size of the content properly, even for long texts.
Steps to Reproduce
Clone the repo below and run
npm i
Start the project and open in desktop resolution. (It was tested on Google Chrome).
Scroll to the bottom of page.
You can write edit the content of textarea, the gap will remain.
Code Reproduction URL
https://github.com/tetkosimi/bug-ionic-textarea
Ionic Info
Additional Information
I think, an
overflow-y
on the native textarea would be enough to solve this issue, as you can see on the right in the example.The text was updated successfully, but these errors were encountered: