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
Small issue: List showing nulls, not numbers, on render #685
Comments
@james-pratama could you provide steps or a sandbox to reproduce this? |
I have the same problem. It can also be found at the following URL example. https://www.blocknotejs.org/examples/basic/all-blocks ( Line of Numbered List Item) If you go back and forth between example > basic > (product line-up), |
We also have this issue, and any help would be greatly appreciated. |
We have a same issue as well. |
I have the same issue, i fix it temporarily using this trick: useEffect(() => {
let timeout: NodeJS.Timeout;
if (editor) {
timeout = setTimeout(() => {
const firstBlock = editor.document[0];
if (firstBlock) editor.updateBlock(firstBlock, { type: firstBlock.type });
}, 100);
}
return () => {
clearTimeout(timeout);
};
}, [editor]); basically just update a block and it will not show as null after render |
On render, my lists are showing null instead of numbers. The numbers only show once I click the editor.
Tried adding ref to BlockNoteView to auto focus editor but does not seem to work.
Is there a list somewhere of all the properties taken by BlockNoteView?
The text was updated successfully, but these errors were encountered: