Skip to content

Commit cb679d7

Browse files
committed
[fixed] issue with react 15.2 warnings for unknown props
1 parent 359769a commit cb679d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/recaptcha.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const ReCAPTCHA = React.createClass({
7777
render() {
7878
// consume properties owned by the reCATPCHA, pass the rest to the div so the user can style it.
7979
/* eslint-disable no-unused-vars */
80-
let { sitekey, onChange, theme, type, tabindex, onExpired, size, stoken, ...childProps } = this.props;
80+
const { sitekey, onChange, theme, type, tabindex, onExpired, size, stoken, grecaptcha, ...childProps } = this.props;
8181
/* eslint-enable no-unused-vars */
8282
return (
8383
<div {...childProps} ref="captcha" />

0 commit comments

Comments
 (0)