Skip to content

bug: autogrow on ion-textarea breaks content #3148

Closed
@Kokkinis99

Description

@Kokkinis99

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues related to bugs on the documentation website

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions