purposeindustries / intellyo-application-design-system

http://ux.intellyo.com
MIT License
5 stars 0 forks source link

fix: do not pass `false` to checkbox's onclick handler #409

Closed oroce closed 5 years ago

oroce commented 5 years ago

This PR resolves the issue of:

Warning: Expected `onClick` listener to be a function, instead got `false`.

If you used to conditionally omit it with onClick={condition && value}, pass onClick={condition ? value : undefined} instead.
    in div (created by Checkbox)
    in Checkbox (created by Calendar)