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
[v2.1.0] react-cropper not rendering when ref not passed #267
Comments
this is not a bug. you need to provide a ref now and react-cropper is not creating one for you if you are not passing it. |
oh, okay thank you! |
I'll add a fix for this too. and add a test using base64 image. |
thats great, thanks! |
I checked out your codesandbox and just wanted to test but am confused now. In your example you just created a ref and passed it to the cropper component, but how would I get the instance now? we have the following in our codebase, this code worked in version 1.3
but with version 2.1.0 and this code we get |
I think I fixed this too in V2.1.1-0 |
alright thanks, ill check it out onced its released |
Hi again,
I just tried out the new version and somehow something seems not to work as expected anymore with the
src
prophere its working version: 2.0.0:
https://codesandbox.io/s/cropper-second-bug-working-bcqp5?file=/src/App.js
here same code not working 2.1.0:
https://codesandbox.io/s/cropper-second-bug-not-working-seu0e
code is the same, only difference is version number
The text was updated successfully, but these errors were encountered: