mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-10-05 01:22:16 +02:00
Et2TreeDropdown: search input has "search" as placeholder when it has focus
This commit is contained in:
parent
6542552177
commit
c45246eac2
@ -745,12 +745,16 @@ export class Et2TreeDropdown extends SearchMixin<Constructor<any> & Et2InputWidg
|
|||||||
|
|
||||||
inputTemplate()
|
inputTemplate()
|
||||||
{
|
{
|
||||||
let placeholder = this.egw().lang("search");
|
let placeholder = "";
|
||||||
let image : symbol | TemplateResult = nothing;
|
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 = "";
|
placeholder = "";
|
||||||
}
|
}
|
||||||
|
else if(this.open)
|
||||||
|
{
|
||||||
|
placeholder = this.egw().lang("Search");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
placeholder = this.emptyLabel || this.placeholder;
|
placeholder = this.emptyLabel || this.placeholder;
|
||||||
|
Loading…
Reference in New Issue
Block a user