From 2ba6777d97b63ec647a8adebc21d40af11411139 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 20 Jun 2022 13:11:21 +0300 Subject: [PATCH] Input: Change options breakpoint to 6 --- sharedComponents/input/input.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;