added focus to first input field of modal
This commit is contained in:
@@ -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