forked from extern/egroupware
Set modelValue if the inputWidget has a _callParser() method.
This makes sure the internal modelValue is set when we call set_value(), and preserves value if the widget is re-connected (like Et2Dialog does)
This commit is contained in:
parent
53a7405a61
commit
38a3af6981
@ -186,6 +186,11 @@ const Et2InputWidgetMixin = (superclass) =>
|
|||||||
set_value(new_value)
|
set_value(new_value)
|
||||||
{
|
{
|
||||||
this.value = new_value;
|
this.value = new_value;
|
||||||
|
|
||||||
|
if(typeof this._callParser == "function")
|
||||||
|
{
|
||||||
|
this.modelValue = this._callParser(new_value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get_value()
|
get_value()
|
||||||
|
Loading…
Reference in New Issue
Block a user