When a line occupies all cols of a textarea (when the line is full), all the mentions following that line are all offset by one line. This is because " " is added to end of each line and since the current line occupies complete width (all cols) the " " is pushed down.
I have fixed this. Will raise a PR.
And thanks for this plugin! :)
Link to minimally-working plunker that reproduces the issue:
Bug description:
When a line occupies all cols of a textarea (when the line is full), all the
mentions
following that line are all offset by one line. This is because " " is added to end of each line and since the current line occupies complete width (all cols) the " " is pushed down.I have fixed this. Will raise a PR.
And thanks for this plugin! :)
Link to minimally-working plunker that reproduces the issue:
https://stackblitz.com/edit/angular-ivy-xhtejl?file=src%2Fapp%2Fapp.component.ts
Version of Angular and ng-mentions:
Angular: v12
ng-mentions: v7.0.2