Skip to content

Interface: SubmitOptions ​

Defined in: core/src/nodes/node-types.ts:126

Options of handleSubmit.

Properties ​

PropertyModifierTypeDescriptionDefined in
focusElement?readonlyFocusElementOptionOverrides the form's option for this submit.core/src/nodes/node-types.ts:135
onInvalid?readonly(errors) => void | Promise<void>Called with the errors, in the order listErrors lists them, when the subtree has errors. Focus moves once the promise it returns settles, so it can open what hides a field, such as a dialog.core/src/nodes/node-types.ts:131
shouldFocusError?readonlyFocusErrorOptionOverrides the form's option for this submit.core/src/nodes/node-types.ts:133

Released under the MIT License.