Skip to content

resetNode does not respect idKey option #4656

@etienne-dldc

Description

@etienne-dldc

Description

Hi,

When the nodeId plugin is configured with a specific idKey other than "id" the resetBlock function does not respect that and thus remove the idKey prop.

const { id, type, ...otherProps } = NodeApi.extractProps(block);

Reproduction URL

No response

Reproduction steps

Create a basic Plate setup and configure `idKey` to `"key"` for example.
Then try to reset and node
-> The `key` prop get removed

Plate version

49

Slate React version

0.118.1

Screenshots

Logs

Browsers

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcore

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions