Skip to content

Commit

Permalink
[fixed] issue with react 15.2 warnings for unknown props
Browse files Browse the repository at this point in the history
  • Loading branch information
dozoisch committed Jul 19, 2016
1 parent 359769a commit cb679d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/recaptcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const ReCAPTCHA = React.createClass({
render() {
// consume properties owned by the reCATPCHA, pass the rest to the div so the user can style it.
/* eslint-disable no-unused-vars */
let { sitekey, onChange, theme, type, tabindex, onExpired, size, stoken, ...childProps } = this.props;
const { sitekey, onChange, theme, type, tabindex, onExpired, size, stoken, grecaptcha, ...childProps } = this.props;
/* eslint-enable no-unused-vars */
return (
<div {...childProps} ref="captcha" />
Expand Down

0 comments on commit cb679d7

Please sign in to comment.