added focus to first input field of modal
This commit is contained in:
1 parent
0cce4727e5
commit
463fbd8332
1 file changed
+1
@@ -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()
|
||||||
|
|||||||
Reference in new issue
Block a user