react-mentions
react-mentions copied to clipboard
drag-and-drop issue
Steps to reproduce: On existing text in textarea
- drag some selected text from other div
- move caret into ReactMention
- position the caret somewhere in-between the existing text
- drop selection
Expected behaviour: Expected to append the selected text dragged into the caret position Observed behaviour: -duplicates the text from the the caret position, appending it to the end.
Workaround:
-tryed to control the onDrop event but still was unable to position the text corectly, instead is apended to the end...
A better example:
@VldMrgnn -- did you happen to find a solution for this? I've investigated the onDrop event and tried to see if the inputRef would have data on the cursor position of the drop (so I could manually handle the update), but I've had no luck.
Unfortunately it's becoming more of an issue lately. A fix here would ease a ton of headache.
@tylertyssedal - sorry, I didn't found a way to fix this and later I switched to draft.js. If you find some solution please drop a link. Good luck to you!