Et2TreeDropdown: search input has "search" as placeholder when it has focus

This commit is contained in:
nathan 2024-09-19 16:07:12 -06:00
parent 6542552177
commit c45246eac2

View File

@ -745,12 +745,16 @@ export class Et2TreeDropdown extends SearchMixin<Constructor<any> & 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;