mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
ET2Textbox: Fix textbox & searchbox did not update after value was changed programmatically
This commit is contained in:
parent
b04d4b28b7
commit
686f56488c
@ -46,9 +46,6 @@ export class Et2Textbox extends Et2InputWidget(SlInput)
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@property()
|
|
||||||
value = "";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Placeholder text to show as a hint when the input is empty.
|
* Placeholder text to show as a hint when the input is empty.
|
||||||
*/
|
*/
|
||||||
@ -73,7 +70,6 @@ export class Et2Textbox extends Et2InputWidget(SlInput)
|
|||||||
|
|
||||||
private __validator : any;
|
private __validator : any;
|
||||||
protected _mask : InputMask;
|
protected _mask : InputMask;
|
||||||
protected _value : string = "";
|
|
||||||
|
|
||||||
inputMode = "text";
|
inputMode = "text";
|
||||||
|
|
||||||
@ -154,6 +150,19 @@ export class Et2Textbox extends Et2InputWidget(SlInput)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@property()
|
||||||
|
get value()
|
||||||
|
{
|
||||||
|
return super.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
set value(newValue : string)
|
||||||
|
{
|
||||||
|
const oldValue = this.value;
|
||||||
|
super.value = newValue;
|
||||||
|
this.requestUpdate("value", oldValue);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the options for masking.
|
* Get the options for masking.
|
||||||
* Can be overridden by subclass for additional options.
|
* Can be overridden by subclass for additional options.
|
||||||
|
Loading…
Reference in New Issue
Block a user