From 8c0b8ff6183f8e060864824ecdb4dd52d34eb951 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 24 May 2019 15:43:55 +0200 Subject: [PATCH] take part length into account as well --- src/editor/parts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/parts.js b/src/editor/parts.js index fbdd22d8bb..be3080db12 100644 --- a/src/editor/parts.js +++ b/src/editor/parts.js @@ -314,7 +314,7 @@ export class PillCandidatePart extends PlainPart { } acceptsInsertion(chr, i) { - if (i === 0) { + if ((this.text.length + i) === 0) { return true; } else { return super.acceptsInsertion(chr, i);