Skip to content
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

feature request: Provide a way to get the scaled image without refs #396

Open
devth opened this issue Apr 6, 2023 · 0 comments
Open

feature request: Provide a way to get the scaled image without refs #396

devth opened this issue Apr 6, 2023 · 0 comments

Comments

@devth
Copy link

devth commented Apr 6, 2023

Especially in a more dynamic context where there may be more than one <AvatarEditor /> in a component it'd be very nice to be able to handle an event, or pull the scaled image data out of the existing onImageChange event instead of messing with React refs.

Maybe something like this?

                    onImageChange={({ scaledImage }) => {
                      console.log("onImageChange", {
                        scaledImage
                      });
                    }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants