Skip to content

Commit 0ad9f68

Browse files
authored
Merge pull request #55 from easeq/master
Fixed webkit header selection centering issue
2 parents 62de7ac + 7345bd2 commit 0ad9f68

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flipbyte/redux-datatable",
3-
"version": "0.7.11",
3+
"version": "0.7.12",
44
"description": "React-Redux data table",
55
"main": "lib/index.js",
66
"module": "es/index.js",

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)