mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 13:25:11 +00:00
Autofocus on email input box when email sign-in selected on web app
This commit is contained in:
@@ -299,6 +299,7 @@ function EmailSignInContext({
|
|||||||
className="p-6 w-[300px] mx-auto rounded-lg"
|
className="p-6 w-[300px] mx-auto rounded-lg"
|
||||||
disabled={checkEmail}
|
disabled={checkEmail}
|
||||||
value={email}
|
value={email}
|
||||||
|
autoFocus={true}
|
||||||
onKeyDown={(e) => {
|
onKeyDown={(e) => {
|
||||||
if (e.key === "Enter") {
|
if (e.key === "Enter") {
|
||||||
handleMagicLinkSignIn();
|
handleMagicLinkSignIn();
|
||||||
|
|||||||
Reference in New Issue
Block a user