-
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
Potential bug when cropping in chrome/safari #66
Comments
@garganmol111, try to add the following callback to <Modal
onOpenChange={(isOpen) => {
if (isOpen) {
cropperRef.current?.refresh();
}
})
...
/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have created the following ImageCropper component for my project:
In the above code, whenever ImageCropper is clicked on, the cropper opens in a nextui-org/react Modal. The above code works perfectly in Firefox, but doesn't seem to work in Chrome/Safari. In chrome/safari, the modal opens but the cropper is not shown. Plus there is no error/warning in the browser console when this happens as well.
Below are screen recording of how it looks on both browsers.
Firefox:
firefox.mp4
Chrome:
chrome.mp4
The text was updated successfully, but these errors were encountered: