Skip to content

Commit 375f820

Browse files
committed
fix auto submit on enter of a text input
1 parent 27ee978 commit 375f820

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/AutoForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ const AutoForm = forwardRef<AutoFormRef, AutoFormProps & AutoFormSlots>((props,
316316
)}
317317

318318
{headerSlot?.({ instance: instanceRef, model })}
319-
<input type="submit" className="hidden" />
319+
<button type="submit" className="hidden" aria-hidden="true" tabIndex={-1}></button>
320320
{children || (
321321
<AutoFormFields
322322
ref={formFieldsRef}

0 commit comments

Comments
 (0)