Skip to content

path prop in plate elements is not being updated properly #4546

@delijah

Description

@delijah

Description

path prop in plate elements is not being updated properly. This leads to errors when making use of that variable.

Reproduction URL

https://codesandbox.io/p/devbox/pqm7xr

Reproduction steps

1. Place your cursor on the first (empty) line
2. Press enter
3. You can see, that the path of the last element did not update
4. Press enter again
5. Same behaviour
6. Place your cursor on the first line again
7. Press enter
8. You can see, that the path of every element below the current one, did not update

Plate version

49.2.6

Slate React version

0.117.1

Screenshots

Logs

Browsers

Chrome

Metadata

Metadata

Assignees

No one assigned

    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