File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,16 @@ const Selection = ({ name, action }) => {
2323 const { getData, config : { primaryKey } } = useContext ( ConfigContext ) ;
2424 const selection = useSelector ( getData ( tableData => tableData . selection || { } ) ) ;
2525 return (
26- < Field . Input
27- type = "checkbox"
28- name = { name }
29- checked = { selection . all === true && _ . isEmpty ( selection . selected ) }
30- onChange = { ( event ) => handleSelection ( action ( SET_SELECTION ) , primaryKey , event ) }
31- ref = { ( el ) => el && ( el . indeterminate = isIndeterminate ( selection , primaryKey ) ) }
32- />
33- ) ;
26+ < div className = "col-12" >
27+ < Field . Input
28+ type = "checkbox"
29+ name = { name }
30+ checked = { selection . all === true && _ . isEmpty ( selection . selected ) }
31+ onChange = { ( event ) => handleSelection ( action ( SET_SELECTION ) , primaryKey , event ) }
32+ ref = { ( el ) => el && ( el . indeterminate = isIndeterminate ( selection , primaryKey ) ) }
33+ />
34+ </ div >
35+ ) ;
3436} ;
3537
3638export default Selection ;
You can’t perform that action at this time.
0 commit comments