-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Image: ReferenceError: rotate is not defined image.esm.js (948:0) #5704
Comments
Hmmm your reproducer is working for me I am not getting any error? |
Nevermind I had to click the background to make it happen. |
Yes, seems to work fine when when closing with escape, only when clicking on the mask/overlay. |
Fixed for 10.3.1! |
Thanks! |
@melloware Still some issue regarding this one. It no longer shows error but when you open same image again it will be extremely zoomed out. If controls are allowed and you zoom in to the blank screen the image becomes visible. |
@arnis87 can you provide a StackBlitz reproducer? I can't reproduce: https://stackblitz.com/edit/qdr2sm?file=src%2FApp.jsx |
OK yeah I see it. Please open a new ticket. |
I was able to reproduce it in the original: https://codesandbox.io/p/sandbox/pedantic-lalande-m8cyqx |
Describe the bug
Upgraded to latest version: 10.3.0 and when started getting this after closing zoomed image:
#5628 was only fix related to Images component so perhaps this is the cause.
Reproducer
https://codesandbox.io/p/sandbox/pedantic-lalande-m8cyqx
PrimeReact version
10.3.0
React version
18.x
Language
TypeScript
Build / Runtime
Next.js
Browser(s)
No response
Steps to reproduce the behavior
Open click on
<Image>
component to zoom and then close it. Error occurs immediately when closing zoom view.Expected behavior
No error.
The text was updated successfully, but these errors were encountered: