-
Notifications
You must be signed in to change notification settings - Fork 26.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
OnLoadingComplete not working when passing function, but works when console log #29363
Comments
Hi, it looks like we don't currently call |
The issue is that next.js/packages/next/client/image.tsx Line 257 in 1389339
This should fix it: #29367 |
Fixes #29363 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added
@levelingup The fix for Data URI is available in v11.1.3-canary.33 You can try it out with |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
…#29367) Fixes vercel#29363 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added
What version of Next.js are you using?
11.1.2
What version of Node.js are you using?
10.20.1
What browser are you using?
chrome
What operating system are you using?
codesandbox
How are you deploying your application?
codesandbox
Describe the Bug
I'm trying to get the naturalWidth and naturalHeight from onLoadingComplete props: https://nextjs.org/docs/api-reference/next/image#onloadingcomplete but its not working? Perhaps I'm doing it wrong?
I have a codesandbox, lines 62, 63: https://codesandbox.io/s/proud-rain-d51sv?file=/pages/index.js
When you upload an image, console log only works, but it doesn't work when I'm trying to pass handleImageLoad function listed in the sandbox.
Expected Behavior
Trying to get naturalWidth and naturalHeight
To Reproduce
https://codesandbox.io/s/proud-rain-d51sv?file=/pages/index.js lines 62, 63
The text was updated successfully, but these errors were encountered: