From 6c391b41962c0b11eada46cc72b2b8c358b366e6 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 25 Jan 2022 18:21:18 +0000 Subject: [PATCH] Fix issue with the new composer EmojiPart which caused infinite loops --- 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 70e6f825185..f5649fbc636 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 {