dockview 1.9.1 → 1.9.2

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview
3
- * @version 1.9.1
3
+ * @version 1.9.2
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -3514,11 +3514,11 @@ class ContentContainer extends CompositeDisposable {
3514
3514
  }
3515
3515
  closePanel() {
3516
3516
  if (this.panel) {
3517
- if (this.accessor.options.defaultRenderer === 'onlyWhenVisibile') {
3517
+ if (this.panel.api.renderer === 'onlyWhenVisibile') {
3518
3518
  this._element.removeChild(this.panel.view.content.element);
3519
3519
  }
3520
- this.panel = undefined;
3521
3520
  }
3521
+ this.panel = undefined;
3522
3522
  }
3523
3523
  dispose() {
3524
3524
  this.disposable.dispose();
@@ -4269,6 +4269,7 @@ class DockviewGroupPanelModel extends CompositeDisposable {
4269
4269
  if (!skipSetGroupActive) {
4270
4270
  this.accessor.doSetGroupActive(this.groupPanel);
4271
4271
  }
4272
+ this.contentContainer.renderPanel(panel, { asActive: true });
4272
4273
  return;
4273
4274
  }
4274
4275
  this.doAddPanel(panel, options.index, skipSetPanelActive);
@@ -7290,7 +7291,7 @@ class DockviewComponent extends BaseGrid {
7290
7291
  }
7291
7292
  addGroup(options) {
7292
7293
  var _a;
7293
- const group = this.createGroup();
7294
+ const group = this.createGroup(options);
7294
7295
  if (options) {
7295
7296
  let referenceGroup;
7296
7297
  if (isGroupOptionsWithPanel(options)) {