react-modal-image
react-modal-image copied to clipboard
Clicks "fall through" the modal on mobile
You can reproduce this issue in the demo:
- Tap on an image to open the modal.
- Tap on another image in the dimmed area behind the modal.
Expected: The modal closes (since you tapped on the dimmed area).
Actual: Modal reopens with the image you tapped behind it.
This error looks related:
main.js:2 Unable to preventDefault inside passive event listener invocation.