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
Description
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...
When finally reaching the maxlength the counter appears without knowing I'm approaching the limit...
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
Labels
No labels