Route now is hidden by default so it doesn't open/close on render.
This commit is contained in:
parent
02e728de0e
commit
6a21111c3d
@ -19,6 +19,9 @@ IgniteTemplate.prototype.route = function(routes, showCallback = null, hideCallb
|
|||||||
routes = [routes];
|
routes = [routes];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//By default hide this route.
|
||||||
|
this.element.style.setProperty("display", "none", "important");
|
||||||
|
|
||||||
//Create an update method that will be used to check and see if the route is met.
|
//Create an update method that will be used to check and see if the route is met.
|
||||||
var update = (event) => {
|
var update = (event) => {
|
||||||
var routeMatches = false;
|
var routeMatches = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user