Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The value created by api.create.block() does not provide an id #3593

Open
natamox opened this issue Sep 30, 2024 · 0 comments
Open

The value created by api.create.block() does not provide an id #3593

natamox opened this issue Sep 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@natamox
Copy link
Collaborator

natamox commented Sep 30, 2024

Description

This will cause the first paragraph to not be selected when I select all because it has no id.

block: (node?: Partial<TElement>, _path?: Path): TElement => ({
children: [{ text: '' }],
type: editor.getType(BaseParagraphPlugin),
...node,
}),

Reproduction URL

No response

Reproduction steps

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

Plate version

38.0.6

Slate React version

0.103.0

Screenshots

image

Logs

No response

Browsers

No response

@natamox natamox added the bug Something isn't working label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant