mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-03 03:24:42 +00:00
add safe check for activeObject
This commit is contained in:
parent
214a169767
commit
22465346fc
1 changed files with 1 additions and 1 deletions
|
|
@ -501,7 +501,7 @@
|
|||
if (target !== this.getActiveGroup() && target !== activeObject) {
|
||||
this.deactivateAll();
|
||||
if (target.selectable) {
|
||||
activeObject.fire('deselected', { e: e });
|
||||
activeObject && activeObject.fire('deselected', { e: e });
|
||||
this.setActiveObject(target, e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue