added focus to first input field of modal

This commit is contained in:
2026-05-13 17:33:08 +02:00
parent 0cce4727e5
commit 463fbd8332
+1
View File
@@ -25,6 +25,7 @@ export function ConnectModal({ serviceType, label, onClose, onSuccess }: Readonl
if (!dialog) return if (!dialog) return
dialog.showModal() dialog.showModal()
firstInputRef.current?.focus()
const handleCancel = (e: Event) => { const handleCancel = (e: Event) => {
e.preventDefault() e.preventDefault()