mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-14 08:43:12 +00:00
add safe check for activeObject
This commit is contained in:
parent
676ae10618
commit
a5d5dc17d2
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