diff --git a/packages/formik/src/Form.tsx b/packages/formik/src/Form.tsx index 93ffe65e3..fea573283 100644 --- a/packages/formik/src/Form.tsx +++ b/packages/formik/src/Form.tsx @@ -17,7 +17,7 @@ export const Form = React.forwardRef( // iOS needs an "action" attribute for nice input: https://stackoverflow.com/a/39485162/406725 // We default the action to "#" in case the preventDefault fails (just updates the URL hash) const { action, ...rest } = props; - const _action = action || '#'; + const _action = action ?? '#'; const { handleReset, handleSubmit } = useFormikContext(); return (