@steroidsjs/core 3.0.0-beta.78 → 3.0.0-beta.79

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "3.0.0-beta.78",
3
+ "version": "3.0.0-beta.79",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -149,7 +149,8 @@ function Router(props) {
149
149
  (0, react_1.useEffect)(function () {
150
150
  if (prevOpenedModalIds !== openedModalIds
151
151
  && route
152
- && !openedModalIds.includes(route.id)) {
152
+ && !openedModalIds.includes(route.id)
153
+ && (prevRoute === null || prevRoute === void 0 ? void 0 : prevRoute.role) === exports.ROUTER_ROLE_MODAL) {
153
154
  var parentRouteId = activeRouteIds.find(function (activeRouteId) {
154
155
  var activeRoute = routes.find(function (routeItem) { return routeItem.id === activeRouteId; });
155
156
  return activeRoute && activeRoute.role !== exports.ROUTER_ROLE_MODAL;