From ca83e138eedfe0ca3ca57f55299e5b8ab7495e36 Mon Sep 17 00:00:00 2001
From: ginsuma <13113013+ginsuma@users.noreply.github.com>
Date: Fri, 4 Aug 2023 14:57:26 +0700
Subject: [PATCH 1/6] Fix drop drag zone
---
src/hooks/useDragAndDrop.js | 1 +
.../ThreePaneView.js | 40 +++++++++----------
web/index.html | 10 +++++
3 files changed, 30 insertions(+), 21 deletions(-)
diff --git a/src/hooks/useDragAndDrop.js b/src/hooks/useDragAndDrop.js
index 98df70085a72..bc8ab517731b 100644
--- a/src/hooks/useDragAndDrop.js
+++ b/src/hooks/useDragAndDrop.js
@@ -58,6 +58,7 @@ export default function useDragAndDrop({dropZone, onDrop = () => {}, shouldAllow
}
event.preventDefault();
+ event.stopPropagation();
switch (event.type) {
case DRAG_OVER_EVENT:
diff --git a/src/libs/Navigation/AppNavigator/createResponsiveStackNavigator/ThreePaneView.js b/src/libs/Navigation/AppNavigator/createResponsiveStackNavigator/ThreePaneView.js
index 2f9a899191bf..14b78752e62f 100644
--- a/src/libs/Navigation/AppNavigator/createResponsiveStackNavigator/ThreePaneView.js
+++ b/src/libs/Navigation/AppNavigator/createResponsiveStackNavigator/ThreePaneView.js
@@ -53,28 +53,26 @@ function ThreePaneView(props) {
);
}
if (route.name === NAVIGATORS.RIGHT_MODAL_NAVIGATOR) {
- const Wrapper = props.state.index === i ? NoDropZone : React.Fragment;
return (
-
-
- props.navigation.goBack()}
- accessibilityLabel={translate('common.close')}
- accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
- />
- {props.descriptors[route.key].render()}
-
-
+
+ props.navigation.goBack()}
+ accessibilityLabel={translate('common.close')}
+ accessibilityRole={CONST.ACCESSIBILITY_ROLE.BUTTON}
+ />
+ {props.descriptors[route.key].render()}
+
);
}
return (
diff --git a/web/index.html b/web/index.html
index d207fa54b97a..16c907fe441b 100644
--- a/web/index.html
+++ b/web/index.html
@@ -136,4 +136,14 @@