Skip to content

Properties#

TypeDescription
preventSubmitWhenfunction(optional) Use this function to prevent the original onSubmit from being called. It receives an object as the first parameter. Read more about the parameters in the info section. Return true to activate the confirmation routine (submit prevention). When it returns false, or is not given, the form submits as usual and the confirmation state does not change.
renderWithStatefunction(optional) This function is called whenever the submit confirmation state changes. It receives an object as the first parameter. Read more about the parameters in the info section. The function is expected to return a React Element to render.
Suggest an edit