make sure to remove element reference if no data type was found

This commit is contained in:
Niels Lyngsø
2022-05-26 12:27:28 +02:00
parent 255a034149
commit eb12355178

View File

@@ -62,9 +62,10 @@ class UmbNodePropertyControl extends LitElement {
if (this._element) {
this.shadowRoot?.removeChild(this._element);
delete this._element;
}
if(this.elementName) {
this._element = document.createElement(this.elementName)
this._element = document.createElement(this.elementName);
this.shadowRoot?.appendChild(this._element);
}
}