From c45246eac2c98249fa311c76dc077ef1fe35bb22 Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 19 Sep 2024 16:07:12 -0600 Subject: [PATCH] Et2TreeDropdown: search input has "search" as placeholder when it has focus --- api/js/etemplate/Et2Tree/Et2TreeDropdown.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/api/js/etemplate/Et2Tree/Et2TreeDropdown.ts b/api/js/etemplate/Et2Tree/Et2TreeDropdown.ts index fb9279f025..5900b2dab7 100644 --- a/api/js/etemplate/Et2Tree/Et2TreeDropdown.ts +++ b/api/js/etemplate/Et2Tree/Et2TreeDropdown.ts @@ -745,12 +745,16 @@ export class Et2TreeDropdown extends SearchMixin & Et2InputWidg inputTemplate() { - let placeholder = this.egw().lang("search"); + let placeholder = ""; let image : symbol | TemplateResult = nothing; - if(this.disabled || this.readonly || (this.open && this.value) || (this.multiple && this.value.length > 0)) + if(this.disabled || this.readonly || (!this.open && this.multiple && this.value.length > 0)) { placeholder = ""; } + else if(this.open) + { + placeholder = this.egw().lang("Search"); + } else { placeholder = this.emptyLabel || this.placeholder;