dozoisch / dozoisch/react-google-recaptcha

reset() don't trigger handleChange()

Open
#204 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.1k
Forks
148
PR merge metrics
No merged PRs in 30d

Description

reset() don't trigger handleChange() for conviniance with state.
But we can call handleChange(null) manually.
So to make the state up to date, it is necessary to call reset() first then handleChange(null).
Maybe it will be great to put handleChange(null) in the reset() function or add a boolean parameter to reset() like reset(triggerHandleChange). Otherwise, maybe tell us we can call handleChange(null) from the doc.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.