fix(reader): Save/Cancel in the note editor closes the whole popover
Release / build-and-push (push) Successful in 2m46s

Cancel only collapsed the editor section, and edit-mode saves only set
noteOpen=false — the minimized popover (colors/pencil/copy/delete) stayed
up. Explicit Save and Cancel now call hideSelectionPopover; color tweaks
with the editor open still keep it open.
This commit is contained in:
John O'Keefe
2026-09-17 11:47:25 -04:00
parent d8179bb066
commit b3a429d7e1
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1758,9 +1758,9 @@ document.addEventListener("alpine:init", () => {
id: p.id,
});
}
// Color tweaks made while the note editor is open keep the
// editor open — only the explicit save/close paths collapse it.
if (!keepNoteOpen) p.noteOpen = false;
// Explicit saves (the Save button) close the whole popover; color
// tweaks made while the note editor is open keep everything open.
if (!keepNoteOpen) this.hideSelectionPopover();
} catch (_e) {
/* ignore highlight errors */
}