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

Commit

Permalink
Fix issue with the new composer EmojiPart which caused infinite loops (
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Jan 25, 2022
1 parent 04f8228 commit 2143845
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 2143845

Please sign in to comment.