Skip to content

Commit f1ce5df

Browse files
committed
fix: don't auto focus in user profile modal
Signed-off-by: Innei <i@innei.in>
1 parent a060986 commit f1ce5df

File tree

1 file changed

+2
-0
lines changed
  • apps/renderer/src/modules/profile

1 file changed

+2
-0
lines changed

apps/renderer/src/modules/profile/hooks.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export const usePresentUserProfileModal = (variant: Variant = "dialog") => {
5050
(userId: string | undefined, overrideVariant?: Variant) => {
5151
if (!userId) return
5252
const finalVariant = overrideVariant || variant
53+
5354
present({
5455
title: "User Profile",
5556
content: () =>
@@ -61,6 +62,7 @@ export const usePresentUserProfileModal = (variant: Variant = "dialog") => {
6162
clickOutsideToDismiss: true,
6263
modal: finalVariant === "dialog",
6364
overlay: finalVariant === "dialog",
65+
autoFocus: false,
6466
modalContainerClassName:
6567
finalVariant === "drawer" ? "right-4 left-[auto] top-4 bottom-4" : "",
6668
})

0 commit comments

Comments
 (0)