Closed
Description
render () {
return (
<MyComponent
onValidate={this.isAdmin ? this.onValidateAdmin.bind(this) : this.onValidate.bind(this)}
onRequestClose={this.onRequestClose.bind(this)}
{...props}
>
)
}
In the code above, the rules 'react/jsx-no-bind' is marking onRequestClose as a warning but not onValidate, although it should in my opinion.
I'll open a PR fixing this bug.
Activity
gwenaellarmet commentedon Mar 14, 2018
PR #1723 fix this bug, need review and merge if accepted
gwenaellarmet commentedon May 17, 2018
Bug was fixed 👍
68 remaining items