@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.
- package/dist/index.mjs +10 -3
- 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
|
|
5790
|
-
this.
|
|
5791
|
-
|
|
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
|
}
|