hyojin / material-ui-datatables

An another React Data tables component.
MIT License
165 stars 58 forks source link

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

Open lantikchi opened 6 years ago

lantikchi commented 6 years ago

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.`