mirror of https://github.com/vector-im/riot-web
Merge pull request #3026 from matrix-org/bwindels/tabcompletionfixup
Fixup for tab completion: take part length into account as wellpull/21833/head
commit
cf932e0eab
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue