@aptre/flex-layout 0.5.0 → 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 +12 -0
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -5785,6 +5785,18 @@ var LayoutInternal = class _LayoutInternal extends React19.Component {
5785
5785
  onDragLeaveRaw = (event) => {
5786
5786
  this.dragEnterCount--;
5787
5787
  if (this.dragEnterCount === 0) {
5788
+ const relatedTarget = event.relatedTarget;
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
+ }
5799
+ }
5788
5800
  this.onDragLeave(event);
5789
5801
  }
5790
5802
  };
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.0",
5
+ "version": "0.5.2",
6
6
  "license": "ISC",
7
7
  "repository": {
8
8
  "type": "git",