Added null check to props.

This commit is contained in:
Matt Mo 2021-08-11 10:46:44 -07:00
parent b353045019
commit 1bc054903c

View File

@ -171,7 +171,9 @@ class IgniteElement extends HTMLElement {
* Sets all the property values on this element. * Sets all the property values on this element.
*/ */
setProperties(props) { setProperties(props) {
Object.keys(props).forEach(name => this[name] = props[name]); if (props) {
Object.keys(props).forEach(name => this[name] = props[name]);
}
} }
/** /**