Always bring modified item to front in canvas

This commit is contained in:
Josh Perez
2021-12-07 10:56:02 -05:00
committed by GitHub
parent e8a2d1f2c9
commit 93310de194
3 changed files with 6 additions and 5 deletions
+2
View File
@@ -15,6 +15,8 @@ export class MediaEditorFabricIText extends fabric.IText {
textAlign: 'center',
...options,
});
this.on('modified', () => this.canvas?.bringToFront(this));
}
static override fromObject(