@melodicdev/components 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1232,6 +1232,7 @@ var RouterService = class RouterService$1 {
|
|
|
1232
1232
|
};
|
|
1233
1233
|
this._resolversExecutedForPath = fullPath;
|
|
1234
1234
|
}
|
|
1235
|
+
this.setCurrentMatches(matchResult);
|
|
1235
1236
|
if (replace) history.replaceState(data, "", fullPath);
|
|
1236
1237
|
else history.pushState(data, "", fullPath);
|
|
1237
1238
|
this._currentPath = fullPath;
|
|
@@ -1350,6 +1351,8 @@ var RouterService = class RouterService$1 {
|
|
|
1350
1351
|
return;
|
|
1351
1352
|
}
|
|
1352
1353
|
this._currentPath = targetPath;
|
|
1354
|
+
const matchResult = this.matchPath(window.location.pathname);
|
|
1355
|
+
this.setCurrentMatches(matchResult);
|
|
1353
1356
|
const navigationEvent = new CustomEvent("NavigationEvent", { detail: routerStateEvent("push", event.state, "", window.location.pathname) });
|
|
1354
1357
|
window.dispatchEvent(navigationEvent);
|
|
1355
1358
|
}
|