react-google-recaptcha
Advanced tools
Comparing version 1.0.2 to 1.0.4
@@ -0,1 +1,8 @@ | ||
v1.0.4 - Thu 27 Sep 2018 15:14 PST | ||
--------------------------------------- | ||
- add .babelrc to .npmignore [(#111)](https://github.com/dozoisch/react-google-recaptcha/issues/111) | ||
v1.0.2 - Wed, 5 Sep 2018 13:21:00 EST | ||
@@ -2,0 +9,0 @@ --------------------------------------- |
{ | ||
"name": "react-google-recaptcha", | ||
"version": "1.0.2", | ||
"version": "1.0.4", | ||
"description": "React Component Wrapper for Google reCAPTCHA", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -70,3 +70,3 @@ # react-google-recaptcha | ||
onSubmit = () ={ | ||
const recaptchaValue = recaptchaRef.getValue(); | ||
const recaptchaValue = recaptchaRef.current.getValue(); | ||
this.props.onSubmit(recaptchaValue); | ||
@@ -101,3 +101,3 @@ } | ||
ReactDOM.render( | ||
<form onSubmit={() => { captcha.execute(); }}> | ||
<form onSubmit={() => { recaptchaRef.current.execute(); }}> | ||
<ReCAPTCHA | ||
@@ -104,0 +104,0 @@ ref={recaptchaRef} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41865
18