diff --git a/js/app.health.js b/js/app.health.js index 8b15198..6116de2 100644 --- a/js/app.health.js +++ b/js/app.health.js @@ -96,7 +96,10 @@ async function openEntryForFix(entryId) { // Bail if the editor didn't actually switch (user cancelled the discard // prompt): the steps below would unmask + select the password of whatever // entry is still open, and pulse Generate on it — the wrong entry. - if (!(await openSlideOver(entryId))) return; + // noFocus: openSlideOver otherwise defers a focus+select on the title + // (setTimeout 80ms) which lands AFTER the password focus below and steals + // it back. Fix targets the password — it owns the focus here. + if (!(await openSlideOver(entryId, { noFocus: true }))) return; const pwd = document.getElementById('soPassword'); if (pwd) { pwd.type = 'text'; // unmask so the user sees what they're replacing