Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting Warning: Expected onMouseUp listener to be a function, instead got false. #82

Open
lantikchi opened this issue Jun 6, 2018 · 0 comments

Comments

@lantikchi
Copy link

lantikchi commented Jun 6, 2018

Getting a long list of warnings, when I set "showCheckboxes ={true}"
Any suggestions on how to get rid of these warnings.

Thank you!

`Warning: Expected `onMouseUp` listener to be a function, instead got `false`.
If you used to conditionally omit it with onMouseUp={condition && value}, pass onMouseUp={condition ? value : undefined} instead.
    in input (created by EnhancedSwitch)
    in div (created by EnhancedSwitch)
    in EnhancedSwitch (created by Checkbox)
    in Checkbox (created by TableHeader)
    in th (created by TableHeaderColumn)
    in TableHeaderColumn (created by TableHeader)
    in tr (created by TableRow)
    in TableRow (created by DataTables)
    in thead (created by TableHeader)
    in TableHeader (created by DataTables)
    in table (created by DataTablesTable)
    in div (created by DataTablesTable)
    in div (created by DataTablesTable)
    in DataTablesTable (created by DataTables)
    in div (created by DataTables)
    in DataTables (at getTopics.js:366)
    in div (created by Card)
    in div (created by Paper)
    in Paper (created by Card)
    in Card (at getTopics.js:351)
    in div (at getTopics.js:348)
    in topics (at AppliedRoute.js:5)
    in Route (at AppliedRoute.js:5)
    in Unknown (at Routes.js:31)
    in Switch (at Routes.js:22)
    in Unknown (at App.js:131)
    in div (at App.js:75)
    in App (created by Route)
    in Route (created by withRouter(App))
    in withRouter(App) (at index.js:49)
    in Router (created by BrowserRouter)
    in BrowserRouter (at index.js:48)
    in MuiThemeProvider (at index.js:47)


index.js:2178 Warning: Expected `onMouseDown` listener to be a function, instead got `false`.

If you used to conditionally omit it with onMouseDown={condition && value}, pass onMouseDown={condition ? value : undefined} instead.

index.js:2178 Warning: Expected `onMouseLeave` listener to be a function, instead got `false`.

If you used to conditionally omit it with onMouseLeave={condition && value}, pass onMouseLeave={condition ? value : undefined} instead.

index.js:2178 Warning: Expected `onTouchStart` listener to be a function, instead got `false`.

If you used to conditionally omit it with onTouchStart={condition && value}, pass onTouchStart={condition ? value : undefined} instead.

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

If you used to conditionally omit it with onTouchEnd={condition && value}, pass onTouchEnd={condition ? value : undefined} instead.`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant