mirror of https://github.com/vector-im/riot-web
take part length into account as well
parent
9d6a818591
commit
8c0b8ff618
|
@ -314,7 +314,7 @@ export class PillCandidatePart extends PlainPart {
|
||||||
}
|
}
|
||||||
|
|
||||||
acceptsInsertion(chr, i) {
|
acceptsInsertion(chr, i) {
|
||||||
if (i === 0) {
|
if ((this.text.length + i) === 0) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return super.acceptsInsertion(chr, i);
|
return super.acceptsInsertion(chr, i);
|
||||||
|
|
Loading…
Reference in New Issue