mirror of
https://github.com/element-hq/element-web
synced 2024-11-29 04:48:50 +03:00
Merge pull request #3026 from matrix-org/bwindels/tabcompletionfixup
Fixup for tab completion: take part length into account as well
This commit is contained in:
commit
cf932e0eab
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue