Fixed a bug where on a class change we didn't check to see if the element existed.
This commit is contained in:
		| @@ -1378,11 +1378,13 @@ class IgniteTemplate { | ||||
|  | ||||
|         //For any classes that are missing on the element, add them. If we have duplicates this | ||||
|         //can happen. | ||||
|         this._classes.forEach((cl) => { | ||||
|             if (!this.element.classList.contains(cl)) { | ||||
|                 this.element.classList.add(cl); | ||||
|             } | ||||
|         }); | ||||
|         if (this.element) { | ||||
|             this._classes.forEach((cl) => { | ||||
|                 if (!this.element.classList.contains(cl)) { | ||||
|                     this.element.classList.add(cl); | ||||
|                 } | ||||
|             }); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user