Fix issue with the new composer EmojiPart which caused infinite loops (#7629)
This commit is contained in:
+1
-1
@@ -361,7 +361,7 @@ class NewlinePart extends BasePart implements IBasePart {
|
|||||||
|
|
||||||
class EmojiPart extends BasePart implements IBasePart {
|
class EmojiPart extends BasePart implements IBasePart {
|
||||||
protected acceptsInsertion(chr: string, offset: number): boolean {
|
protected acceptsInsertion(chr: string, offset: number): boolean {
|
||||||
return false;
|
return mightContainEmoji(chr);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected acceptsRemoval(position: number, chr: string): boolean {
|
protected acceptsRemoval(position: number, chr: string): boolean {
|
||||||
|
|||||||
Reference in New Issue
Block a user