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
  */
@@ -3511,11 +3511,11 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
3511
3511
  }
3512
3512
  closePanel() {
3513
3513
  if (this.panel) {
3514
- if (this.accessor.options.defaultRenderer === 'onlyWhenVisibile') {
3514
+ if (this.panel.api.renderer === 'onlyWhenVisibile') {
3515
3515
  this._element.removeChild(this.panel.view.content.element);
3516
3516
  }
3517
- this.panel = undefined;
3518
3517
  }
3518
+ this.panel = undefined;
3519
3519
  }
3520
3520
  dispose() {
3521
3521
  this.disposable.dispose();
@@ -4266,6 +4266,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
4266
4266
  if (!skipSetGroupActive) {
4267
4267
  this.accessor.doSetGroupActive(this.groupPanel);
4268
4268
  }
4269
+ this.contentContainer.renderPanel(panel, { asActive: true });
4269
4270
  return;
4270
4271
  }
4271
4272
  this.doAddPanel(panel, options.index, skipSetPanelActive);
@@ -7287,7 +7288,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
7287
7288
  }
7288
7289
  addGroup(options) {
7289
7290
  var _a;
7290
- const group = this.createGroup();
7291
+ const group = this.createGroup(options);
7291
7292
  if (options) {
7292
7293
  let referenceGroup;
7293
7294
  if (isGroupOptionsWithPanel(options)) {