nth-cloud / ng-mentions

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

First character of the first word is getting removed after replacing it once #44

Open mvheugten opened 1 year ago

mvheugten commented 1 year ago

Please remember, the issues forum is NOT for support requests. It is for bugs and feature requests only. Please search existing issues (both open and closed) prior to opening any new issue and ensure you follow the instructions therein.

Bug description: First character of the first word is getting removed after replacing it once.

  1. Write any word
  2. Remove the first letter and replace it with any char
  3. Go to the end of the word and use a whitespace (the first letter disappears) image

Version of Angular and ng-mentions:

Angular: 12.2

ng-mentions: ^7.0.3

trickeyone commented 1 year ago

Sorry for the delay @mvheugten . I'm unable to reproduce this in the current version of the component. Version 7 is no longer receiving updates. Are you able to upgrade Angular and NgMentions versions?

abraham-becker-buildium commented 1 year ago

I'm also experiencing the same issue with version 8.0.0 in Angular 13. I replicated it like this:

  1. type some non mention text
  2. do an at mention and accept
  3. delete the at mention
  4. type some more
  5. add another at mention
  6. Edit at the beginning of the input value
  7. Edit at the end of the input value by pressing the spacebar after the mention, it causes the first character in the input value to be deleted.
filipKudla commented 1 year ago

I have the same issue. It could be reproduced on your first example https://nth-cloud.github.io/ng-mentions/#/components/mentions/examples when you start editing from index 0. When you have Hello (and at start you try to type ab) result is Hbello (it is expected to be abHelo).

filipKudla commented 1 year ago

Some news?

filipKudla commented 1 year ago

Sorry for the delay @mvheugten . I'm unable to reproduce this in the current version of the component. Version 7 is no longer receiving updates. Are you able to upgrade Angular and NgMentions versions?

please could you try it ? I described it how to reproduce.

stale[bot] commented 6 months ago

Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 24 hours. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again!