Skip to content

Build your personal knowledge base with Trilium Notes

fix(modals): missing focus in protected session (closes #7251)

Elian Doran22e6b96daa45
diff --git a/apps/client/src/widgets/dialogs/protected_session_password.tsx b/apps/client/src/widgets/dialogs/protected_session_password.tsx
index 1584a1ae19..e2c70fb884 100644
--- a/apps/client/src/widgets/dialogs/protected_session_password.tsx
+++ b/apps/client/src/widgets/dialogs/protected_session_password.tsx
@@ -28,6 +28,7 @@ export default function ProtectedSessionPasswordDialog() {
>
<label htmlFor="protected-session-password" className="col-form-label">{t("protected_session_password.form_label")}</label>
<FormTextBox
+ inputRef={inputRef}
id="protected-session-password"
name="protected-session-password"
type="password"