Skip to content

Cursor up/down does not work on empty thought in sorted context #2733

@raineorshine

Description

@raineorshine

Steps to Reproduce

- x
  - b
  - a
  - =sort
    - Alphabetical
      - Desc
  1. Set the cursor on x.
  2. Activate New Subthought Above (Meta + Shift + Enter).
  3. Move cursor up/down.

Current Behavior

  • Cursor up moves the cursor from the empty thought to a.
  • Cursor down: Nothing happens.

Expected Behavior

  • Cursor up should move the cursor from the empty thought to x.
  • Cursor down should move the cursor from the empty thought to b.

Testing

Add an RTL test.

Notes

Empty thoughts are generally ignored in sorted lists. This is to avoid re-sorting the list when the user activates New Thought or New Subthought. It will only re-sort when the user starts typing in the thought.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions