diff --git a/sharedComponents/input/input.component.ts b/sharedComponents/input/input.component.ts index 622d3709..6f3ea1fd 100644 --- a/sharedComponents/input/input.component.ts +++ b/sharedComponents/input/input.component.ts @@ -235,6 +235,7 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang public properties: EnvProperties = properties; private initValue: any; private optionsArray: Option[] = []; + private optionsBreakpoint: number = 6; private subscriptions: any[] = []; @ViewChild('inputBox') inputBox: ElementRef; @ViewChild('optionBox') optionBox: ElementRef; @@ -269,7 +270,7 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang this.tooltip = this.optionsArray.length > 0; } if(this.type === "select") { - if (this.optionsArray.length > 7) { + if (this.optionsArray.length > this.optionsBreakpoint) { this.type = 'autocomplete'; this.showOptionsOnEmpty = true; this.icon = this.selectArrow;