We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1ff4eae + b8660de commit 55ca14dCopy full SHA for 55ca14d
src/recaptcha.js
@@ -118,7 +118,7 @@ export default class ReCAPTCHA extends React.Component {
118
ReCAPTCHA.displayName = "ReCAPTCHA";
119
ReCAPTCHA.propTypes = {
120
sitekey: PropTypes.string.isRequired,
121
- onChange: PropTypes.func.isRequired,
+ onChange: PropTypes.func,
122
grecaptcha: PropTypes.object,
123
theme: PropTypes.oneOf(["dark", "light"]),
124
type: PropTypes.oneOf(["image", "audio"]),
@@ -130,6 +130,7 @@ ReCAPTCHA.propTypes = {
130
badge: PropTypes.oneOf(["bottomright", "bottomleft", "inline"]),
131
};
132
ReCAPTCHA.defaultProps = {
133
+ onChange: () => {},
134
theme: "light",
135
type: "image",
136
tabindex: 0,
0 commit comments