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
In the code example, move cursor to position indicated by │ and hit backspace:
import {CodeJar} from │'codejar';
^
The space character gets deleted, but the cursor also jumps to the end of the div/editor. This isn't happening in Brave/Chromium, so I suspect it is a Firefox specific issue.
From what I can tell this happens when a whitespace text node gets deleted, but only if it's between 2 non-text elements. This isn't an issue when deleting non-text elements like <span>, or deleting whitespace characters in the middle of multiple whitespace characters in a text node.
The text was updated successfully, but these errors were encountered:
I'm also getting this issue (in Firefox as well). I updated the editor not too long ago. Prior to that it didn't do that so it was a problem introduced (which means maybe a git bisect could find the culprit).
zamfofex
added a commit
to zamfofex/codejar
that referenced
this issue
Sep 6, 2024
Steps to reproduce
│
and hit backspace:The space character gets deleted, but the cursor also jumps to the end of the div/editor. This isn't happening in Brave/Chromium, so I suspect it is a Firefox specific issue.
From what I can tell this happens when a whitespace text node gets deleted, but only if it's between 2 non-text elements. This isn't an issue when deleting non-text elements like
<span>
, or deleting whitespace characters in the middle of multiple whitespace characters in a text node.The text was updated successfully, but these errors were encountered: