-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parentSelector
to have Cropper working inside iframe
#39
Comments
Or maybe it is possible to add the event listener to the |
@matteofrana, if this issue is still actual, could you provide the minimum reproducible example? |
@matteofrana, I close issue for now, but feel free to reopen. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I have a modal (
react-modal
) attached to a parent iframe (viaparentSelector
).Inside this modal I have the
Cropper
. The wheel event is working, while the cropping handles aren't working.I think it is because the Cropper attaches events to the current window, while I should have them attached to the iframe document:
react-advanced-cropper/src/components/service/DraggableElement.tsx
Line 218 in 283ec19
I think this could be done by adding a
parentSelector
prop to theCropper
component and, if there is aparentSelector
, attaching the events to it, instead ofwindow
.What do you think about it?
The text was updated successfully, but these errors were encountered: