Skip to content

Commit

Permalink
fix: not fire object modified event when cropzone is modified [#519]
Browse files Browse the repository at this point in the history
# Conflicts:
#	apps/image-editor/src/js/imageEditor.js
  • Loading branch information
lja1018 committed Mar 5, 2021
1 parent fda3f97 commit 2c786d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/image-editor/src/js/imageEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1309,8 +1309,10 @@ class ImageEditor {
* @private
*/
_onObjectModified(obj) {
this._invoker.fire(events.EXECUTE_COMMAND, getObjectType(obj.type));
this._pushModifyObjectCommand(obj);
if (obj.type !== 'cropzone') {
this._invoker.fire(events.EXECUTE_COMMAND, getObjectType(obj.type));
this._pushModifyObjectCommand(obj);
}
}

/**
Expand Down

0 comments on commit 2c786d7

Please sign in to comment.