-
Notifications
You must be signed in to change notification settings - Fork 4
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
Deleting first character of new line, and then creating a new line immediately afterwards has strange behavior #3
Comments
any changes here? |
@nikolayemrikh unfortunately not, haven't been spending any time with this repo for a while. |
I did a bit of investigating and I don't think this is not a bug with the framework but rather with how the browser handles single newline code blocks. Please see fiddle below: |
@nikolayemrikh Thanks for the effort, but it is also somehow related to interactions with the library since repeating the steps in a plain contenteditable block will not cause the same issue. It may be somehow related to setting textContent and perhaps some newline optimisations, but I can't off the top of my head remember what the data content looks like in the original repro, and haven't been able to deduce exactly what's going wrong. |
My keypresses in this .gif are:
Enter Key -> A -> Backspace -> Enter Key
Issue seems to exist in latest Chrome, but seems fine in latest Firefox.
Haven't explored this further, but will add if I find something.
The text was updated successfully, but these errors were encountered: