Roam-Research / issues

Roam Research - A note-taking tool for networked thought.
https://roamresearch.com/
304 stars 6 forks source link

New bullet after multiline paste has the same content as last pasted #622

Closed mquirin closed 3 years ago

mquirin commented 3 years ago

Describe the bug

When creating a new bullet after copying and pasting a multiline block, the new bullet automatically has the content of the clipboard / last copied content, but should be empty.

To Reproduce

Steps to reproduce the behavior:

  1. Start an empty page bug_622
  2. type a multiline block, e.g. "foo[Shift-Enter]bar"
  3. Select both lines and copy (e.g. Shift-{Up,Home], Ctrl-C)
  4. Create a new bullet (e.g. [right-arrow], [Enter])
  5. Past multiline (Ctrl-Shift-V)
  6. Press [Enter] to create another bullet
  7. The new bullet has already content "foo" but should be empty

At this point also the cursor position /rendering looks broken as well. When reloading the page the last bullet has content "foo\nbar" instead of being empty.

System Information:

mquirin commented 3 years ago

Likely be a duplicate of #438