@bizdoc/core 1.14.0-next.6 → 1.14.0-next.7

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.
@@ -18965,7 +18965,7 @@ class SlotsComponent {
18965
18965
  let path = this.panes.filter(p => p.route).map(s => s.fullPath).join(PATH_CHAR);
18966
18966
  if (this.tabs.length)
18967
18967
  path += PANE_CHAR + this.tabs.filter(p => p.route).map(s => s.fullPath).join(PATH_CHAR);
18968
- (mode == 'replace' ? history.replaceState : history.pushState)({
18968
+ const state = {
18969
18969
  bizdoc: true,
18970
18970
  step: history.state && history.state.bizdoc ? history.state.step + 1 : 1,
18971
18971
  selectedTabIndex: this.selectedTabIndex,
@@ -18975,7 +18975,11 @@ class SlotsComponent {
18975
18975
  group: this.group,
18976
18976
  swapTab: this.swapTab,
18977
18977
  prevGroup: this.prevGroup
18978
- }, '', '/' + path);
18978
+ };
18979
+ if (mode === 'push')
18980
+ history.pushState(state, '', '/' + path);
18981
+ else
18982
+ history.replaceState(state, '');
18979
18983
  }
18980
18984
  drop(evt) {
18981
18985
  const pane = this.panes[evt.previousIndex];