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

bug: autogrow on ion-textarea breaks content #3148

Closed
3 tasks done
Kokkinis99 opened this issue Sep 25, 2023 · 2 comments
Closed
3 tasks done

bug: autogrow on ion-textarea breaks content #3148

Kokkinis99 opened this issue Sep 25, 2023 · 2 comments
Labels
bug Issues related to bugs on the documentation website

Comments

@Kokkinis99
Copy link

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

When the autoGrow property is set to true, the textarea grows to a point and the starts being scrollable. However the content is pushed up and you can't scroll back to the top of your text, hiding the first lines.

textarea_issue

Expected Behavior

The autoGrow property should not make the textarea scrollable, or at least if it should, it should not hide any content.

Steps to Reproduce

  1. Create an ion-textarea component
  2. Set the autoGrow property to true
  3. Start writing text until the textarea starts scrolling and hides the top lines of your text
  4. Try to scroll back up

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 7.1.1
Ionic Framework : @ionic/angular 7.2.0
@angular-devkit/build-angular : 16.1.4
@angular-devkit/schematics : 16.1.4
@angular/cli : 16.1.4
@ionic/angular-toolkit : 10.0.0

Capacitor:

Capacitor CLI : 5.3.0
@capacitor/android : 5.3.0
@capacitor/core : 5.3.0
@capacitor/ios : 5.3.0

Utility:

cordova-res : not installed globally
native-run : 1.7.2

System:

NodeJS : v18.16.1
npm : 8.19.2
OS : macOS Unknown

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage New issues label Sep 25, 2023
@Kokkinis99 Kokkinis99 changed the title bug: autogrow on textarea breaks content bug: autogrow on ion-textarea breaks content Sep 25, 2023
@liamdebeasi liamdebeasi self-assigned this Sep 25, 2023
@liamdebeasi
Copy link
Contributor

Thanks for the report. This is an issue with how we represent the autoGrow demo on the docs. The .container element we wrap the textarea in causes the text to get clipped on scroll. Going to move this to the docs repo.

@liamdebeasi liamdebeasi transferred this issue from ionic-team/ionic-framework Sep 25, 2023
@liamdebeasi liamdebeasi added the bug Issues related to bugs on the documentation website label Sep 25, 2023
@liamdebeasi liamdebeasi removed their assignment Sep 25, 2023
@ionitron-bot ionitron-bot bot removed the triage New issues label Sep 25, 2023
@sean-perkins
Copy link
Contributor

Hello,

This was resolved in #3219. You can see the updated demo example here: https://ionicframework.com/docs/api/textarea#autogrow

Thank you for reporting this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues related to bugs on the documentation website
Projects
None yet
Development

No branches or pull requests

3 participants