dockview-core 2.1.0 → 2.1.1

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.
@@ -1465,7 +1465,7 @@ var DockviewComponent = /** @class */ (function (_super) {
1465
1465
  var refGroup = selectedGroup.referenceGroup
1466
1466
  ? this.getPanel(selectedGroup.referenceGroup)
1467
1467
  : undefined;
1468
- if (refGroup) {
1468
+ if (refGroup && refGroup.panels.length === 0) {
1469
1469
  this.removeGroup(refGroup);
1470
1470
  }
1471
1471
  }
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-core
3
- * @version 2.1.0
3
+ * @version 2.1.1
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -8564,7 +8564,7 @@ define(['exports'], (function (exports) { 'use strict';
8564
8564
  const refGroup = selectedGroup.referenceGroup
8565
8565
  ? this.getPanel(selectedGroup.referenceGroup)
8566
8566
  : undefined;
8567
- if (refGroup) {
8567
+ if (refGroup && refGroup.panels.length === 0) {
8568
8568
  this.removeGroup(refGroup);
8569
8569
  }
8570
8570
  }