Select row checkbox error
See original GitHub issueThis is my configuration: selectRow={{ mode: ‘checkbox’, clickToSelect: true, classes: ‘selection-table-row’, onSelect: (rowKey, checked, rowIndex) => { debugger; }, onSelectAll: (option) => { debugger; } }}
Error is:
Warning: Failed prop type: You provided a checked
prop to a form field without an onChange
handler. This will render a read-only field. If the field should be mutable use defaultChecked
. Otherwise, set either onChange
or readOnly
.
in input (created by CheckBox)
in CheckBox (created by SelectionHeaderCell)
in th (created by SelectionHeaderCell)
in SelectionHeaderCell (created by Header)
in tr (created by Header)
in thead (created by Header)
in Header (created by BootstrapTable)
in table (created by BootstrapTable)
in div (created by BootstrapTable)
in BootstrapTable (created by PaginationWrapper)
in PaginationWrapper (created by SortWrapper)
in SortWrapper (created by CellEditWrapper)
in CellEditWrapper (created by RowSelectionWrapper)
in RowSelectionWrapper (created by BootstrapTableContainer)
in BootstrapTableContainer (created by Users)
in div (created by Users)
in Users (created by Route)
in Route (created by Full)
in Switch (created by Full)
in div (created by Container)
in Container (created by Full)
in main (created by Full)
in div (created by Full)
in div (created by Full)
in Full (created by Route)
in Route (created by IsLoggedInSwitch)
in Switch (created by IsLoggedInSwitch)
in IsLoggedInSwitch
in Switch
in Router (created by HashRouter)
in HashRouter
in div
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (4 by maintainers)
we fixed this issue in
react-bootstrap-table-next@1.1.2
, check thisI get the same error: Failed prop type: You provided a
checked
prop to a form field without anonChange
handler. This will render a read-only field. If the field should be mutable usedefaultChecked
. Otherwise, set eitheronChange
orreadOnly
The warning shows: in input (created by CheckBox) in CheckBox (created by SelectionHeaderCell) in th (created by SelectionHeaderCell) in SelectionHeaderCell (created by Header) in tr (created by Header) in thead (created by Header) in Header (created by BootstrapTable) in table (created by BootstrapTable) in div (created by BootstrapTable) in BootstrapTable (created by CellEditWrapper) in CellEditWrapper (created by RowSelectionWrapper) in RowSelectionWrapper (created by Table) in Table (created by Table) in Table (created by AppDefaultTable) in div (created by AppDefaultTable) in AppDefaultTable (created by Table) in Table (created by Page) in div (created by Row) in div (created by Row) in div (created by Row) in article (created by Row) in div (created by Row) in Row (created by Page) in section (created by PageLayout) in PageLayout (created by Page) in Page (created by Connect(Page)) in Connect(Page) (created by Route) in Route (created by App) in Router (created by BrowserRouter) in BrowserRouter (created by App) in Provider (created by App) in App