-
|
Howdy! We have an implementation that essentially wraps the entire page's content in an <Uploady>
<UploadDropZone>
<>
<PageHeader />
<Layout>
<PageContent>
{ /* .. other page content */ }
<ModalUploader />
</PageContent>
</Layout>
</>
</UploadDropZone>
</Uploady>which yields a DOM structure that basically matches the JSX: <body>
<div> <!-- drop container -->
<header>
<main>
<nav>
<!-- etc -->
</main>
</div>
</body>The <body>
<div> <!-- drop container -->
<main>
<header>
<nav>
<!-- etc -->
</main>
</div>
<div data-overlay-container="true">
<div class="underlay>
<div role="dialog">
<!-- Uploader UI: progress bar, message for adding more files, etc -->
</div>
</div>
</div>
</body>The modal (specifically the underlay) covers the entire page and all future dragover events will bubble up through the overlay, and the drop zone will catch them even though they didn't bubble up through the DOM (due to how events work with React portals). Prior to (I believe v1.3.0) this interaction worked fine, but now that For now, I patched around it using Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
|
Hey @mwdiaz Sorry I didnt have time to dive into the details so if this isnt helpful let me know, but can't the required behavior be accomplished with a combination of defining your own logic in a shouldHandleDrag callback + setting |
Beta Was this translation helpful? Give feedback.
-
|
possible fix released in: 1.10.0 |
Beta Was this translation helpful? Give feedback.
possible fix released in: 1.10.0