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:
nathan 2022-03-24 09:46:27 -06:00
parent 53a7405a61
commit 38a3af6981

View File

@ -186,6 +186,11 @@ const Et2InputWidgetMixin = (superclass) =>
set_value(new_value)
{
this.value = new_value;
if(typeof this._callParser == "function")
{
this.modelValue = this._callParser(new_value);
}
}
get_value()