Skip to content

Commit 0429dfc

Browse files
rluvatonmmalerba
authored andcommitted
Fix part of #13195 (Size not enforced) (#18028)
* Fix part of #13195 (Size not enforced) Fix part of #13195 (Size not enforced) * docs(form-field): enforce input length in the custom form field example docs(form-field): enforce input length in the custom form field example and remove the size as @crisbeto suggested [here](#18028 (comment))
1 parent ad689cd commit 0429dfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guides/creating-a-custom-form-field-control.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ class MyTel {
2424
selector: 'example-tel-input',
2525
template: `
2626
<div [formGroup]="parts">
27-
<input class="area" formControlName="area" size="3">
27+
<input class="area" formControlName="area" maxlength="3">
2828
<span>&ndash;</span>
29-
<input class="exchange" formControlName="exchange" size="3">
29+
<input class="exchange" formControlName="exchange" maxlength="3">
3030
<span>&ndash;</span>
31-
<input class="subscriber" formControlName="subscriber" size="4">
31+
<input class="subscriber" formControlName="subscriber" maxlength="4">
3232
</div>
3333
`,
3434
styles: [`

0 commit comments

Comments
 (0)