dozoisch / dozoisch/react-google-recaptcha
onErrored still shows default message when prop is provided
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 148
- PR merge metrics
- No merged PRs in 30d
Description
react-google-recaptcha version: 1.0.5
react-async-script version: 1.0.0
When I provide Recaptha the on errored prop as below
``
onError = () => {
this.setState({
isExecuting: false,
});
};
``
` (this.recaptchaInstance = e)}
sitekey={sitekey}
onChange={this.handleRecaptchaOnChange}
size="invisible"
onErrored={this.onError}
/>
`
The messge below still renders in a div with no css class so it cant be easily hidden.
> Could not connect to the reCAPTCHA service. Please check your internet connection and reload to get a reCAPTCHA challenge.
From the google spec overriding the deafult error handler in the recaptha library should hide this.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.