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
  */
@@ -3492,11 +3492,11 @@ class ContentContainer extends CompositeDisposable {
3492
3492
  }
3493
3493
  closePanel() {
3494
3494
  if (this.panel) {
3495
- if (this.accessor.options.defaultRenderer === 'onlyWhenVisibile') {
3495
+ if (this.panel.api.renderer === 'onlyWhenVisibile') {
3496
3496
  this._element.removeChild(this.panel.view.content.element);
3497
3497
  }
3498
- this.panel = undefined;
3499
3498
  }
3499
+ this.panel = undefined;
3500
3500
  }
3501
3501
  dispose() {
3502
3502
  this.disposable.dispose();
@@ -4247,6 +4247,7 @@ class DockviewGroupPanelModel extends CompositeDisposable {
4247
4247
  if (!skipSetGroupActive) {
4248
4248
  this.accessor.doSetGroupActive(this.groupPanel);
4249
4249
  }
4250
+ this.contentContainer.renderPanel(panel, { asActive: true });
4250
4251
  return;
4251
4252
  }
4252
4253
  this.doAddPanel(panel, options.index, skipSetPanelActive);
@@ -7268,7 +7269,7 @@ class DockviewComponent extends BaseGrid {
7268
7269
  }
7269
7270
  addGroup(options) {
7270
7271
  var _a;
7271
- const group = this.createGroup();
7272
+ const group = this.createGroup(options);
7272
7273
  if (options) {
7273
7274
  let referenceGroup;
7274
7275
  if (isGroupOptionsWithPanel(options)) {