Dashibase / lotion

An open-source Notion UI built with Vue 3
GNU General Public License v3.0
2.79k stars 132 forks source link

Caret moves down when trying to add multiple blocks #41

Closed lyqht closed 2 years ago

lyqht commented 2 years ago

Description

In Notion, when you click on the "+" button next to the block, you will see a context menu to choose the custom block that you want to add to your document, so there isn't a behavior of repeatedly clicking on the "+" button.

However, in Lotion, right now, when we click on the "+" button repeatedly, the caret is immediately moved to the new block. This results the user to leave where they are previously. While this logic does seem to follow how Notion implements it, it is not ideal for users that just want to add multiple placeholder blocks.

Screenshots

scroll_position_shifts_down_when_adding_items

greentfrapp commented 2 years ago

@lyqht interesting point - any suggestions for how you would prefer the caret to behave?

lyqht commented 2 years ago

Previously this behavior looked funny to me since I wanted to stay at the same spot while adding more blocks. But now that I think about this issue again, I think it's actually fine.