Skip to content

Commit 57bcdb8

Browse files
committed
fix(forms): change onCancel prop-type to optional
1 parent 7ebf7a3 commit 57bcdb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forms/Form.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Form.propTypes = {
7676
customValidation: PropTypes.bool,
7777
customActions: PropTypes.oneOfType([PropTypes.element, PropTypes.arrayOf(PropTypes.element)]),
7878
initialValues: PropTypes.object,
79-
onCancel: PropTypes.func.isRequired,
79+
onCancel: PropTypes.func,
8080
onSubmit: PropTypes.func.isRequired,
8181
submitLabel: PropTypes.string,
8282
validations: PropTypes.object,

0 commit comments

Comments
 (0)