Skip to content

Commit ddd44d2

Browse files
authored
fix(module:input): textarea-count combined with nzHasFeedback location (#7709)
fix #7574
1 parent a1d78cb commit ddd44d2

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Diff for: components/form/demo/validate-reactive.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,10 @@ import { Observable, Observer } from 'rxjs';
4444
</nz-form-item>
4545
<nz-form-item>
4646
<nz-form-label [nzSpan]="7" nzRequired>Comment</nz-form-label>
47-
<nz-form-control [nzSpan]="12" nzErrorTip="Please write something here!">
48-
<textarea formControlName="comment" nz-input rows="2" placeholder="write any thing"></textarea>
47+
<nz-form-control [nzSpan]="12" nzHasFeedback nzErrorTip="Please write something here!">
48+
<nz-textarea-count [nzMaxCharacterCount]="2000">
49+
<textarea formControlName="comment" nz-input rows="2" placeholder="write any thing"></textarea>
50+
</nz-textarea-count>
4951
</nz-form-control>
5052
</nz-form-item>
5153
<nz-form-item>

Diff for: components/input/style/patch.less

+5
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,8 @@ nz-form-item-feedback-icon.@{ant-prefix}-input {
5757
}
5858
}
5959

60+
.@{ant-prefix}-input-textarea-show-count {
61+
display: block;
62+
position: relative;
63+
}
64+

0 commit comments

Comments
 (0)