fix: preserve draft content when tab is suspended or editor remounts
Gate auto-save on initialization to prevent empty content from overwriting cached drafts on remount. Flush drafts synchronously on visibilitychange/ pagehide so Chromium tab suspension cannot drop pending debounced saves. Restore cached draft over saved memo content when they differ (inline editing).
Showing
Please register or sign in to comment