can only delete the last mention #1228
Unanswered
fridaystreet
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using 7.0.3 and have things setup and working pretty well now. Have an async mention plugin running and fetching entries from server. I've noticed that if I add more than one mention, then try and backspace to delete them, it only deletes the last one. First back space deletes the last one, then cursor is there, when you backspace again it just highlights/selects the next one and the cursor is lost. in order for it to be deleted you have to click back into input box, once the cursor is there you can backspace and continue to delete. It does this for every mention you have.
I noticed this because I had created an emoji selector using the mentionbox and had the issue, if I inserted multiple emojis I couldn't just quickly backspace and delete them, it would just delete one, then essentially get stuck.
It seems the workaround is to ensure there is an extra space after the item as seen in getMentionOnSelectItem.ts, but this is only done when it's endofblock, which mention isn't because it's nested between 2 { text: '' }
essentially the node is
I'm just wondering does this have anything to do with the deleteonbackspace plugin, or can it be fixed in some way using the rules etc?
Beta Was this translation helpful? Give feedback.
All reactions