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
  */
@@ -3481,11 +3481,11 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
3481
3481
  }
3482
3482
  closePanel() {
3483
3483
  if (this.panel) {
3484
- if (this.accessor.options.defaultRenderer === 'onlyWhenVisibile') {
3484
+ if (this.panel.api.renderer === 'onlyWhenVisibile') {
3485
3485
  this._element.removeChild(this.panel.view.content.element);
3486
3486
  }
3487
- this.panel = undefined;
3488
3487
  }
3488
+ this.panel = undefined;
3489
3489
  }
3490
3490
  dispose() {
3491
3491
  this.disposable.dispose();
@@ -4236,6 +4236,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
4236
4236
  if (!skipSetGroupActive) {
4237
4237
  this.accessor.doSetGroupActive(this.groupPanel);
4238
4238
  }
4239
+ this.contentContainer.renderPanel(panel, { asActive: true });
4239
4240
  return;
4240
4241
  }
4241
4242
  this.doAddPanel(panel, options.index, skipSetPanelActive);
@@ -7257,7 +7258,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
7257
7258
  }
7258
7259
  addGroup(options) {
7259
7260
  var _a;
7260
- const group = this.createGroup();
7261
+ const group = this.createGroup(options);
7261
7262
  if (options) {
7262
7263
  let referenceGroup;
7263
7264
  if (isGroupOptionsWithPanel(options)) {