Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/ui-kit/experimental/dollar/dollar.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand All @@ -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<any> = new Subject();
Expand Down