Skip to content
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

Open
kevinfiol opened this issue Nov 28, 2017 · 4 comments

Comments

@kevinfiol
Copy link

xjgje1t1da8k_2017-11-28_16-23-33

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.

@nikolayemrikh
Copy link

any changes here?

@orbitbot
Copy link
Owner

orbitbot commented Jul 9, 2018

@nikolayemrikh unfortunately not, haven't been spending any time with this repo for a while.

@wibily
Copy link

wibily commented Jul 11, 2018

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:

https://jsfiddle.net/ruzv50qj/15/

@orbitbot
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants