zakodium-oss / react-science

React components and tools to build scientific applications.
https://react-science.pages.dev
MIT License
3 stars 6 forks source link

The "DropZone" component should have an option to prevent the propagation of drop events. #674

Closed hamed-musallam closed 6 months ago

hamed-musallam commented 6 months ago

https://react-dropzone.js.org/#section-event-propagation https://github.com/zakodium-oss/react-science/blob/c4628bd14c2f0258436cbfa4f3a24b7a48f44a8a/src/components/drop-zone/DropZone.tsx#L107-L111

We need to have this option to stop propagation from the child to the parent, where we have a similar case in NMRium

https://github.com/zakodium-oss/react-science/assets/35760236/99cc3161-d1cb-4b19-9c24-a4ef4e846438