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

Fix issue with the new composer EmojiPart which caused infinite loops #7629

Merged
merged 1 commit into from
Jan 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/editor/parts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down