-
Notifications
You must be signed in to change notification settings - Fork 34
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();
}
})
...
/> |
@Norserium I have added the given callback, and the code now looks like:
in the above code, I'm still facing the same issue. in the Edit: Having the same issue in the latest version (v0.20.0) as well |
@garganmol111, does the cropper appear when you resize window while your modal window is open? |
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: