Skip to content

richtext pod moves as cursor moves in text #166

@forrestbao

Description

@forrestbao

What happens

When editing a richtext pod, if using an arrow key to move the cursor, the pod's location on the canvas changes.

See the video below. If I leave editing a pod, e.g., by clicking somewhere outside of the richtext pod, and then click somewhere inside the pod except a line end, the unexpected pod location shifting won't happen. But once I reach a line end, such as creating a new line, the bug appears again.

video1025589118.mp4

How to repeat

Create a new note pod. Type something. And then use any arrow key to move the cursor in the text. Note the difference when you reach a line end and not.

Expected behavior

When a pod, regardless of whether it is code or note, is in editing mode (#88), using arrow keys should only move the cursor but not the location of the pod.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions