From ca243e9b67306adbfda0eed5047d52794499286c Mon Sep 17 00:00:00 2001 From: Matt Mo Date: Mon, 6 Dec 2021 09:27:23 -0800 Subject: [PATCH] Added important to route display state to force a route to not be visible. --- ignite-html-router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ignite-html-router.js b/ignite-html-router.js index faf02e4..b1666df 100644 --- a/ignite-html-router.js +++ b/ignite-html-router.js @@ -47,7 +47,7 @@ IgniteTemplate.prototype.route = function(routes, showCallback = null, hideCallb } } else { //Hide the route element. - this.element.style.setProperty("display", "none"); + this.element.style.setProperty("display", "none", "important"); if (hideCallback) { hideCallback();