-
-
Notifications
You must be signed in to change notification settings - Fork 232
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
Selection is not handled properly while setting selected text #1265
Comments
This is a weird bug. The selected part is wrapped in a Although I don't know what the reason is, if #1282 is passed, then this bug will be fixed along with it. I don't see the relation between this bug and the function |
Is this issue still outstanding? I could not reproduce it based on the initial description. |
Not sure if this is exactly the same issue but if I go to https://remirror.io/ using Chrome and bold some selected text, the selection disappears: selection-changes.mp4 |
I think selection disappearing is due to losing focus by clicking on the bold button. (You don't lose focus if you hotkey into it.) |
It does not always disappear when clicking on the buttons, another example: selection-jumping-floating-toolbard.mp4 |
Summary
When the style setting is triggered, the size of the highlighted selection area will change.
Steps to reproduce
Expected results
Only selected text turns bold, and selected
Actual results
Other text also selected
Possible Solution
Related code:
remirror/packages/remirror__core-utils/src/core-utils.ts
Line 935 in 41c4e56
Screenshot(s)
Credit
This bug is found by @Rolaka
The text was updated successfully, but these errors were encountered: