1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2025-01-14 14:43:17 +08:00

Fixing search hint collision with empty search bar issue #237

This commit is contained in:
Patrik J. Braun 2021-04-01 22:38:15 +02:00
parent d8b3ff06fd
commit 39c4c7fc02

View File

@ -59,6 +59,9 @@ export class GallerySearchFieldComponent implements ControlValueAccessor, Valida
}
get SearchHint() {
if (!this.rawSearchText) {
return '';
}
if (!this.autoCompleteItems ||
!this.autoCompleteItems.value || this.autoCompleteItems.value.length === 0) {
return this.rawSearchText;