Skip to content

Commit 1f9764f

Browse files
authored
Merge pull request #110 from netgrif/NAE-1712
[NAE-1712] Advanced search in case of date operators is blinking (very quickly opening and closing)
2 parents a75ccb8 + 256f5b7 commit 1f9764f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

projects/netgrif-components-core/src/lib/search/search-operand-input-component/abstract-search-operand-input.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export abstract class AbstractSearchOperandInputComponent implements OnInit, OnD
6262
return this._filteredOptions$;
6363
}
6464

65-
public get isInputFilled(): boolean {
65+
public isInputFilled(): boolean {
6666
if (!this._inputConfirmed) {
6767
return false;
6868
}
@@ -79,7 +79,7 @@ export abstract class AbstractSearchOperandInputComponent implements OnInit, OnD
7979
}
8080
this._initialExpansion = false;
8181

82-
if (!this.isInputFilled) {
82+
if (!this.isInputFilled()) {
8383
setTimeout(() => {
8484
input.nativeElement.focus();
8585
});

projects/netgrif-components/src/lib/search/advanced-search/search-operand-input-component/search-operand-input.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div *ngIf="!isInputFilled; then operandSelection else operandDisplay"></div>
1+
<div *ngIf="!isInputFilled(); then operandSelection else operandDisplay"></div>
22

33
<ng-template #operandSelection>
44
<div [ngSwitch]="inputType">

0 commit comments

Comments
 (0)