Skip to content

fix: Removed warning when node attribute does not correspond to a prop #391

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

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

matthewlipski
Copy link
Collaborator

The warning we log when converting a TipTap node to BlockNote block, which triggers when a node attribute doesn't correspond to a block prop, triggers false positives on the list item block's index attribute. The warning isn't actually useful for diagnosing bugs since custom blocks are made using the API anyway where the warning won't trigger, so it's only useful when converting an existing TipTap node to a block, which isn't recommended and is an advanced (not even documented) use case. Therefore, this PR removes that warning altogether. Closes #308

@vercel
Copy link

vercel bot commented Oct 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote-website ✅ Ready (Inspect) Visit Preview Oct 24, 2023 3:07pm

@matthewlipski matthewlipski merged commit ca1288f into main Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Block has an unrecognized attribute: index
2 participants