keystone icon indicating copy to clipboard operation
keystone copied to clipboard

Bug: Clicking between custom components in the document editor

Open saicu opened this issue 3 years ago • 3 comments

Please add steps to reproduce the problem: https://keystonejs.com/docs/guides/document-field-demo In the Document Fields Demo, try to click between the grid and the notice component, its unreachable.

Please describe what you expected to happen: You can click between it and insert things there.

Please add any screenshots if possible: grafik

Please add contextual information such as your node version (node -v), or the web browser you used: Same problem for firefox / chrome. There is a workaround for getting between the two notice components for example, when just double pressing enter from the above one. Unfortanetly this isnt possible in the grid (or other components we build ourselves).

saicu avatar Mar 12 '22 13:03 saicu

Thanks for sharing @saicu 🙌

Confirming that there is a bug when exiting a layout block.

Expected behaviour would be a new/empty line appears when pressing enter in the last line of the layout block.

raveling avatar Mar 15 '22 23:03 raveling

Just ran into this as well, it makes it hard to edit documents when two block components are back-to-back without whitespace.

It doesn't seem like an exactly trivial bug to fix. Any idea of what a solution could look like?

joallard avatar Jun 16 '23 14:06 joallard