Set node property for inputWidget as it's expected to contain input node

This commit is contained in:
Hadi Nategh
2021-10-13 15:36:33 +02:00
parent f454536165
commit b84ef08c29
2 changed files with 7 additions and 2 deletions

View File

@@ -38,6 +38,7 @@ const Et2InputWidgetMixin = (superclass) =>
{
protected value : string | number | Object;
protected _oldValue : string | number | Object;
protected node : HTMLElement;
/** WebComponent **/
static get styles()
@@ -70,7 +71,11 @@ const Et2InputWidgetMixin = (superclass) =>
super(...args);
}
connectedCallback()
{
super.connectedCallback();
this.node = this.getInputNode();
}
set_value(new_value)
{
this.value = new_value;