Skip to content

Commit 99bbb39

Browse files
committed
Fixed webkit header selection centering issue
1 parent 62de7ac commit 99bbb39

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/components/Renderer/Header/Selection.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff 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

3638
export default Selection;

0 commit comments

Comments
 (0)