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.

md-maxlength and ng-messages together are not showing text counter #5853

Closed
@andrew-cunliffe

Description

@andrew-cunliffe

The counter for characters seems to end up inside the ng-messages block when both maxlength and messages are used together,

The result is that there is no counter until an error occurs....

Before reaching the maxlength...

screen shot 2015-11-20 at 15 48 31

When finally reaching the maxlength the counter appears without knowing I'm approaching the limit...

screen shot 2015-11-20 at 15 48 55

HTML CODE

    <md-input-container>
        <label>Detailed Description</label>
        <textarea name="detailDescription"
                  required="required"
                  md-maxlength="1000"
                  ng-model="ctrl.detailDescription"></textarea>

        <div ng-messages="form.detailDescription.$error">
            <div ng-message="required">Detailed description is required</div>
        </div>
    </md-input-container>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions