[super] create a codeblock at the end of a collapsible cause a freeze
Describe the bug
[!NOTE] Apparently if you wait the editor will unfreeze. But I didn't find a way to reproduce it consistently
If you create a codeblock at the end of a collapsible and you try to go bellow the the codeblock with the arrow keys or try to press Enter two times the program freezes and doesn't respond. A side effect to this seems to be that the note will be erased even if saved. The note is still there but the contents is gone.
To Reproduce
Steps to reproduce the behavior:
- Go to any super note or create a new one
- Create a collapsible by either
/or the+icon - Type a few words `
- Create a codeblock in a way that there is no empty line below it end the end of the codeblock is the end of the collapsible
- Ensure syntax highlighting is JavaScript
- type exactly:
public class OuterClass {
public class InnerClass {}
} // <- position cursor here
- Try to move arrrow keys up or down or press Enter rapidly.
Expected behavior
Program should let me go under the codeblock and let me write under the codeblock without freezing.
Screencast
[!NOTE] When it shows the cursor I was clicking
Screencast_20250110_131438.webm
Desktop (please complete the following information):
- OS: Arch Linux
uname -a:Linux laptop 6.12.8-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 02 Jan 2025 22:52:26 +0000 x86_64 GNU/Linux
- Browser: Desktop Client (Likely Electron/Chromium)
- Version:
3.195.17 - Packaging: Flatpak (Flathub)
Additional context
Relevant Debug Console Errors