Skip to content

Adjacent property values shift their location when they contain child nodes and the user uses the backspace key to delete all the content inside of a property #50

@nmartin84

Description

@nmartin84

Search first

  • I searched and no similar issues were found

What Happened?

When deleting the last node for a property I noticed that instead of the property return to a state where it displays "Empty" for its values, it instead will shift a node that's in a property above the currently focused property down 1 level, leading to nodes being shifted into a completely different property domain.

Reproduce the Bug

  1. Create a tag with the following two properties that are both text nodes "Description & Details"
  2. Create a page and tag it with the tag you created in step 1
  3. Add some notes to the Description property and be sure to include some child nodes
  4. Add some notes to the Details property.
  5. Now click inside the text node for the Details property - press CTRL+A to select all and press the back space key twice. This should reset the node to a state of being Empty, however, instead what happens is the child node above this property gets shifted down.

Expected Behavior

Deleting the content in a property should not cause adjacent property values to shift their location

Screenshots

chrome_BXxOyxwdKQ.mp4

Browser, Desktop or Mobile Platform Information

Logseq DB Test Environment

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions