react-fastclick
react-fastclick copied to clipboard
Checkbox label is not working, when i use react-fastclick?
here my code==>
<input
type="checkbox"
className="no-fastclick checkbox" id="accept"
name="agree"
checked={this.state.checkBox}
onChange={this.handleCheck}/>
<label htmlFor="accept">By proceeding you agree to Terms of Use and Privacy Policy.</label>
Hello. Which version of react-fastclick are you using?
Sorry for the late replay and I have using react-fastclick": "^3.0.2
Hey, @Aravindraj92. This seems to be something I never implemented. I'd be happy to accept a pull request to handle this. Inside this if block you'd simply need to check if the element type was a checkbox, and then set forTarget.checked = !forTarget.checked;
.
If you'd like to look into this, it may be worth doing the same for radio buttons also. 😊
Working! when modifying index.js in node module, but I couldn't modify there because I have run "npm install" in the server for every push request.
Hi, this problem has not resolve yet ?
It is not, though I'm happy to accept pull requests. 🙂