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

pull/21833/head
Michael Telatynski 2022-01-25 20:22:41 +00:00 committed by GitHub
parent 04f8228741
commit 2143845a3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 {