Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion box is misplaced when text is deleted #5

Open
TunaYagci opened this issue May 20, 2020 · 2 comments
Open

Suggestion box is misplaced when text is deleted #5

TunaYagci opened this issue May 20, 2020 · 2 comments

Comments

@TunaYagci
Copy link
Owner

If you type something and delete, the cursor remains in the last word, hence the suggestion box positions itself to a wrong place.

Try writing a long text. Then open the mention box with @. Then delete the whole sentence. Put another @. There, mention box is misplaced.

It's better show with a GIF:

Current master:
mentionable-bug

Old master (github pages):
mentionable-github-pages

@TunaYagci
Copy link
Owner Author

@HRankit fyi. What's your opinion on this?

@HRankit
Copy link

HRankit commented May 20, 2020

2 problems are found on a quick debug,

if (listWidth > 0) {

  1. This line is not working as expected. listWidth is most of the time coming 0.

let coords = getCaretCoordinates(this.$refs.textarea, index);

2. Also textarea-caret co-ordinates are not getting updated correctly.
We will have to look for a replacement of these lines or figure out why it is not working properly..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants