Fixed a null ref issue when trying to route an element that hasn't been constructed yet.
This commit is contained in:
@@ -20,7 +20,7 @@ IgniteTemplate.prototype.route = function (routes, showCallback = null, hideCall
|
||||
}
|
||||
|
||||
//By default hide this route.
|
||||
this.element.style.setProperty("display", "none", "important");
|
||||
this.element?.style.setProperty("display", "none", "important");
|
||||
|
||||
//Create an update method that will be used to check and see if the route is met.
|
||||
var update = (event) => {
|
||||
|
Reference in New Issue
Block a user