nth-cloud / ng-mentions

Rich Mentions Component for Angular
http://nth-cloud.github.io/ng-mentions
MIT License
12 stars 12 forks source link

Mentions offset due to "non-breakable-spaces" at each line. #19

Closed Jagan-P closed 2 years ago

Jagan-P commented 2 years ago

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.

image

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

Jagan-P commented 2 years ago

20 created PR for this.

trickeyone commented 2 years ago

Closed with #20