From 2143845a3a73eba3007b8e5e7a0bdcbce302df97 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 25 Jan 2022 20:22:41 +0000 Subject: [PATCH] Fix issue with the new composer EmojiPart which caused infinite loops (#7629) --- src/editor/parts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/parts.ts b/src/editor/parts.ts index 70e6f82518..f5649fbc63 100644 --- a/src/editor/parts.ts +++ b/src/editor/parts.ts @@ -361,7 +361,7 @@ class NewlinePart extends BasePart implements IBasePart { class EmojiPart extends BasePart implements IBasePart { protected acceptsInsertion(chr: string, offset: number): boolean { - return false; + return mightContainEmoji(chr); } protected acceptsRemoval(position: number, chr: string): boolean {