-
Notifications
You must be signed in to change notification settings - Fork 162
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
Uncaught (in promise) TypeError: Cannot read properties of null (reading 'querySelectorAll') #716
Comments
Please provide a demo project to restore the problem. The above code is not enough. |
Please try this repo https://github.com/MisterRayman/DemoBug as the demo project. |
Fixed in 5.0.2 |
Sorry to bother you again. Could you check if your fix works for the demo project? Locally I still get the error even after updating to 5.0.2. |
I didn't find this issue in the demo project. Are there any other behavior? 2024-11-20.14.57.17.mov |
Ah sorry it seems to be a problem with the original project. The demo works fine with the update. I have no idea why i doesn't seem to be working for the original project. Consider this closed. I'll let you know if/when I find a way to reproduce the error in the demo project. |
I need a demo project. Although the null value can be determined directly in the code, the fundamental problem has not been solved. |
The value returned by |
at least 3.5.3 |
Already tried, Vue 3.5.0 will report an error, but can let it work by set editorId="md-editor-v-0". 3.5.12 runs normally. |
Describe the issue
I've got a Vue3 Project where I switched to your md-editor. Sometimes when quickly switching between components I get the following error:
When following the code the error come from the following line:
Even when noMermaid is set to true, the error still appears.
After some investigation it looks like the .value can sometimes still be undefined, causing the error to appear.
When the value is set (the error doesn't appear) everything works perfectly.
This is how I implemented the editor into my component:
Procedure version
nodejs: 22.11.0, vue: 3.5.12, md-editor-v3: 5.0.1
Reproduction link
No response
The text was updated successfully, but these errors were encountered: