@aptre/flex-layout 0.5.1 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.mjs +10 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -5786,9 +5786,16 @@ var LayoutInternal = class _LayoutInternal extends React19.Component {
5786
5786
  this.dragEnterCount--;
5787
5787
  if (this.dragEnterCount === 0) {
5788
5788
  const relatedTarget = event.relatedTarget;
5789
- if (relatedTarget && this.selfRef.current?.contains(relatedTarget)) {
5790
- this.dragEnterCount = 1;
5791
- return;
5789
+ if (relatedTarget) {
5790
+ if (this.selfRef.current?.contains(relatedTarget)) {
5791
+ this.dragEnterCount = 1;
5792
+ return;
5793
+ }
5794
+ const tabContainer = relatedTarget.closest('[data-layout-path="/tab-container"]');
5795
+ if (tabContainer && this.selfRef.current?.parentElement?.contains(tabContainer)) {
5796
+ this.dragEnterCount = 1;
5797
+ return;
5798
+ }
5792
5799
  }
5793
5800
  this.onDragLeave(event);
5794
5801
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aptre/flex-layout",
3
3
  "author": "Caplin Systems Ltd",
4
4
  "description": "A multi-tab docking layout manager",
5
- "version": "0.5.1",
5
+ "version": "0.5.2",
6
6
  "license": "ISC",
7
7
  "repository": {
8
8
  "type": "git",