-
Notifications
You must be signed in to change notification settings - Fork 135
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
More detailed events please?? #248
Comments
@GsHeri, there will be a lot more events in the next major release: But, alas, Moreover, an user can undo its changes and in your approach the image will be still considered as changed. Instead in the new major version will be used another approach to suit your use-case: const isDirty = !isEqualState(cropper.getState(), cropper.getDefaultState()); The new API is implemented in What can I offer you now? I can offer you the workaround, for example. |
oh nice, that looks promising! update: update2:
so far it seems to be doing exactly what i wanted :) update3: |
I'm using v2 (1.11.6)
and i really wonder, why there is only ONE event?
my use-case is a user-details page. so i want to activate the save button only when the image was actually CHANGED.
now this cropper fires its "changed" event on change, as well as init/load, or pretty much everything else. how am i supposed to listen for an actual "image was changed" event? i don't need the same event on load as on change. how does that help anyone?
am i missing something?
The text was updated successfully, but these errors were encountered: