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:
parent
d8b3ff06fd
commit
39c4c7fc02
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user