Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 2143845

Browse files
authored
Fix issue with the new composer EmojiPart which caused infinite loops (#7629)
1 parent 04f8228 commit 2143845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/editor/parts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ class NewlinePart extends BasePart implements IBasePart {
361361

362362
class EmojiPart extends BasePart implements IBasePart {
363363
protected acceptsInsertion(chr: string, offset: number): boolean {
364-
return false;
364+
return mightContainEmoji(chr);
365365
}
366366

367367
protected acceptsRemoval(position: number, chr: string): boolean {

0 commit comments

Comments
 (0)