You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered an issue with the mention functionality in React-Draft-Wysiwyg when inserting mentions into the middle of the text and selecting them via the dropdown menu. Upon selecting a mention from the dropdown menu by clicking, it inadvertently removes some text to the right of the mention. This behavior is not observed when selecting mentions by hitting the enter key.
When the desired mention appears in the dropdown menu, click on it to select it.
Expected Behavior:
The selected mention should be inserted into the editor without removing any adjacent text.
Actual Behavior:
Selecting a mention from the dropdown menu by clicking removes some text to the right of the mention.
This issue occurs specifically when inserting mentions into the middle of the text and selecting them via the dropdown menu. Mention insertion and selection via hitting the enter key work as expected.
@nickbely-novata, I forked your branch, and it looks like you've fixed the issue! I had to update the .gitignore file not to ignore the /dist directory, but otherwise things look good. Thank you for addressing this, and I hope the PR gets merged soon so that I can resume referencing the master branch.
I have encountered an issue with the mention functionality in React-Draft-Wysiwyg when inserting mentions into the middle of the text and selecting them via the dropdown menu. Upon selecting a mention from the dropdown menu by clicking, it inadvertently removes some text to the right of the mention. This behavior is not observed when selecting mentions by hitting the enter key.
Steps to Reproduce:
Expected Behavior:
The selected mention should be inserted into the editor without removing any adjacent text.
Actual Behavior:
Selecting a mention from the dropdown menu by clicking removes some text to the right of the mention.
This issue occurs specifically when inserting mentions into the middle of the text and selecting them via the dropdown menu. Mention insertion and selection via hitting the enter key work as expected.
Environment:
React-Draft-Wysiwyg version: [1.15.0]
Browser: [Chrome 122.0.6261.129]
Operating System: [ Windows 10]
The text was updated successfully, but these errors were encountered: