Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

RC4: Rows attribute doesn't resize textarea when no content #5751

Closed

Description

@chr22

Textareas are always rendered with only one row if there isn't any content in it.

See this CodePen

It also limits the height of the textarea to the number of rows set.

Activity

  1. added a commit that references this issue on Nov 16, 2015
    d807b8f
  2. devversion commented on Nov 16, 2015

    @devversion
    Member

    Yeah.

    • The limit of the textarea is the intentional behavior.

    Here is again my second fix for the textarea, this one should work better.

  3. added this to the 1.0-rc7 milestone on Dec 4, 2015
  4. added
    pr: merge ready
    on Dec 11, 2015
  5. modified the milestones: 1.0-rc7, on Dec 13, 2015
  6. added 2 commits that reference this issue on Dec 30, 2015
    d2ec04b
    101b1bc
  7. modified the milestones: , 1.1.0, on Jan 5, 2016
  8. ndraiman commented on Feb 14, 2016

    @ndraiman

    temporary "hack":
    fill your binded model with '\n' for the amount of rows you want.

    html:
    <textarea required name="message" ng-model="contactDetails.message" rows="5"></textarea>

    js (controller):

    $scope.contactDetails = {
            ....
            message: "\n\n\n\n\n" //fix for textarea remaining at 1 row.
        };
    
  9. alexilyaev commented on Apr 12, 2016

    @alexilyaev

    +1, very confusing, as you'd expect rows="5" to allocate 5 empty rows.
    This is essential since you sometimes want to show a big empty textarea so the user gets that they can put in a long message.

  10. EladBezalel commented on Apr 18, 2016

    @EladBezalel
    Member

    @devversion take a look

  11. modified the milestones: , Deprecated on Apr 20, 2016
  12. ThomasBurleson commented on Apr 28, 2016

    @ThomasBurleson
    Contributor

    This issue is closed as part of our deprecation effort.
    For details, see our post Spring Cleaning 2016.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

pr: merge ready

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions