From df78a982cce8e33e40e461c092894abfe0a7adef Mon Sep 17 00:00:00 2001 From: Duke Forsyth Date: Mon, 4 Mar 2019 14:12:49 -0500 Subject: [PATCH] Can this work? Need strictMaxLength to be adjustable if possible. --- src/ui-kit/experimental/dollar/dollar.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ui-kit/experimental/dollar/dollar.component.ts b/src/ui-kit/experimental/dollar/dollar.component.ts index fddc63ec3..e9a7780ee 100644 --- a/src/ui-kit/experimental/dollar/dollar.component.ts +++ b/src/ui-kit/experimental/dollar/dollar.component.ts @@ -33,6 +33,11 @@ export class SamDollarComponent extends SamFormControl { * Optional text to be displayed when the text area is empty */ @Input() public placeholder: string; + + /** + * type = number starts adding letter 'e' if a max length is not enforced + */ + @Input() public strictMaxLength: number = 16; /** * (deprecated) Lose focus event emit */ @@ -44,8 +49,6 @@ export class SamDollarComponent extends SamFormControl { @ViewChild(LabelWrapper) public wrapper: LabelWrapper; - // type=number starts adding letter 'e' if a max length is not enforced - strictMaxLength = 16; attrType = 'text'; previousValue = null; private ngUnsubscribe: Subject = new Subject();