-
-
Notifications
You must be signed in to change notification settings - Fork 379
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 program crashes when the cursor hovers over a custom block. #863
Comments
import { BlockNoteEditor, PartialBlock } from "@blocknote/core"; interface editorProps { const TextEditor: React.FC = ({ initialContent, editable }) => {
} export default TextEditor; use this code i work now, but still one issue is that. |
sorry, perhaps the question you answered is unrelated to this issue. |
I get some more info: Kapture.2024-06-26.at.16.16.02.mp4It looks like an exception happens when trying to get the block information as the cursor goes over it, leading to the block variable being undefined. |
Hey! Subscribing into this issue. I am having the same problem with a custom block. Tomorrow I will investigate more and see if I can give more information |
In simple terms, I created a custom Mermaid block, but the program crashes when the mouse cursor passes over its middle section. In the console, I receive the following error message:
I expect the runtime effect to be as shown in the following image:
** To Reproduce **
here is demo
Unfortunately, as a backend programmer, I'm unable to provide more detailed information about the issue. However, I speculate that the issue might stem from modifications to the DOM elements during the Mermaid rendering process, which could be causing problems with the mouse event triggers. i do not sure...
Misc
npm: v20.12.1
edge
chrome
safari
The text was updated successfully, but these errors were encountered: