You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Editor loses focus a few seconds after stopping typing (Auto-save collision) #942
While typing a note in MassCode, if I stop typing for a few seconds, the text area completely loses focus, forcing me to click inside the editor again to continue typing.
To reproduce
Open any note.
Type some text.
Stop typing and wait 2-3 seconds (triggering the auto-save debounce).
The cursor disappears and focus is lost from the text area.
Technical Context: This seems to be caused by the bt.updateListener.of listener inside the CodeMirror initialization. When the debounced save function triggers (P(!1) inside the un() scheduler), it causes a reactive state mutation that forces Vue to re-render or re-instantiate the CodeMirror state, causing document.activeElement to lose focus.
Hello @meusistemabr. Please describe in detail the sequence of actions that leads to the bug (skip it if it's already there). Add screenshots of errors from the console. If possible add a video. Issues marked with need reproduction will be closed if they have no activity within 3 days.
Activity
github-actions commentedon Sep 19, 2026
Hello @meusistemabr. Please describe in detail the sequence of actions that leads to the bug (skip it if it's already there). Add screenshots of errors from the console. If possible add a video. Issues marked with
need reproductionwill be closed if they have no activity within 3 days.