Api: Fix disabled not being correctly set

This commit is contained in:
nathan 2022-01-12 11:41:13 -07:00
parent 49cac615d7
commit 12120b5434

View File

@ -69,13 +69,13 @@ const Et2WidgetMixin = (superClass) =>
private _children : (et2_widget | Et2WidgetClass)[] = []; private _children : (et2_widget | Et2WidgetClass)[] = [];
/** /**
* Properties - default values, and actually creating them as fields * Internal Properties - default values, and actually creating them as fields
* Do not include public property defined in properties()
*/ */
protected _widget_id : string = ""; protected _widget_id : string = "";
protected _dom_id : string = ""; protected _dom_id : string = "";
protected _label : string = ""; protected _label : string = "";
private statustext : string = ""; private statustext : string = "";
protected disabled : boolean = false;
/** WebComponent **/ /** WebComponent **/
@ -1197,7 +1197,7 @@ function transformAttributes(widget, mgr : et2_arrayMgr, attributes)
break; break;
} }
// Set as attribute or property, as appropriate // Set as attribute or property, as appropriate. Don't set missing attributes.
if(widget.getAttributeNames().indexOf(attribute) >= 0 || property.reflect && attrValue) if(widget.getAttributeNames().indexOf(attribute) >= 0 || property.reflect && attrValue)
{ {
// Set as attribute (reflected in DOM) // Set as attribute (reflected in DOM)