mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-10 01:10:59 +00:00
fabric.StaticCanvas.clear() delete _activeObject
If canvas is cleared ```canvas._activeObject``` should be removed.
This commit is contained in:
parent
40bda07140
commit
dfec3dd2f0
1 changed files with 3 additions and 0 deletions
|
|
@ -501,6 +501,9 @@
|
|||
if (this.discardActiveGroup) {
|
||||
this.discardActiveGroup();
|
||||
}
|
||||
if (this.discardActiveObject) {
|
||||
this.discardActiveObject();
|
||||
}
|
||||
this.clearContext(this.contextContainer);
|
||||
if (this.contextTop) {
|
||||
this.clearContext(this.contextTop);
|
||||
|
|
|
|||
Loading…
Reference in a new issue