LRNWebComponents / hax-body

CODE MOVED TO https://github.com/elmsln/lrnwebcomponents PROJECT HOME:
https://haxtheweb.org/
Apache License 2.0
55 stars 7 forks source link

selection / delete paragraph rebuilding can truncate text to insertion point #126

Closed btopro closed 6 years ago

btopro commented 6 years ago

intentionally cryptic but if you delete too many things (paragraphs since it uses keyboard) too quickly you can create a scenario where it takes what's in the item your about to "delete" and delets the contents of the next item, then injects it into the placeholder tracking span.

If we have a timeout on backspace being allowed to delete the thing before it that should resolve this. it's ONLY when hitting delete on an empty item too rapidly (like 2 deletes in a row) that a 3rd will go away.

btopro commented 6 years ago

lots more clean up in this area so now all the delete operations are a lot more logical and trapped for accordingly based on what's selected, etc