misbehave icon indicating copy to clipboard operation
misbehave copied to clipboard

Deleting first character of new line, and then creating a new line immediately afterwards has strange behavior

Open kevinfiol opened this issue 8 years ago • 4 comments

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.

kevinfiol avatar Nov 28 '17 21:11 kevinfiol

any changes here?

nikolayemrikh avatar Jul 09 '18 18:07 nikolayemrikh

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

orbitbot avatar Jul 09 '18 23:07 orbitbot

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/

wibily avatar Jul 11 '18 03:07 wibily

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

orbitbot avatar Jul 12 '18 21:07 orbitbot