dockview-react 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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * dockview-react
3
- * @version 2.1.0
3
+ * @version 2.1.1
4
4
  * @link https://github.com/mathuo/dockview
5
5
  * @license MIT
6
6
  */
@@ -8511,7 +8511,7 @@ define(['exports', 'react', 'react-dom'], (function (exports, React, ReactDOM) {
8511
8511
  const refGroup = selectedGroup.referenceGroup
8512
8512
  ? this.getPanel(selectedGroup.referenceGroup)
8513
8513
  : undefined;
8514
- if (refGroup) {
8514
+ if (refGroup && refGroup.panels.length === 0) {
8515
8515
  this.removeGroup(refGroup);
8516
8516
  }
8517
8517
  }