Skip to content

Commit c0aa66c

Browse files
authored
fix(): update window => fabric.window (#8209)
1 parent 5ead2d6 commit c0aa66c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mixins/itext_behavior.mixin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ const reNonWord = /[ \n\.,;!\?\-]/;
400400
}
401401

402402
// regain focus
403-
document.activeElement !== this.hiddenTextarea && this.hiddenTextarea.focus();
403+
fabric.document.activeElement !== this.hiddenTextarea && this.hiddenTextarea.focus();
404404

405405
var newSelectionStart = this.getSelectionStartFromPointer(options.e),
406406
currentStart = this.selectionStart,

0 commit comments

Comments
 (0)