Skip to content
This repository was archived by the owner on Jul 17, 2020. It is now read-only.

Commit 50de608

Browse files
authored
Merge pull request #22 from 0soft/radio
Add a missing import on TableSelectCell
2 parents 36edea0 + 4352605 commit 50de608

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/MUIDataTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ class MUIDataTable extends React.Component {
10511051

10521052
return (
10531053
<Paper elevation={4} ref={this.tableContent} className={classes.paper}>
1054-
{selectedRows.data.length ? (
1054+
{selectedRows.data.length && (this.options && !this.options.radio) ? (
10551055
<TableToolbarSelect
10561056
options={this.options}
10571057
selectedRows={selectedRows}

src/components/TableSelectCell.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import classNames from 'classnames';
44
import Checkbox from '@material-ui/core/Checkbox';
5+
import Radio from '@material-ui/core/Radio';
56
import TableCell from '@material-ui/core/TableCell';
67
import { withStyles } from '@material-ui/core/styles';
78
import KeyboardArrowRight from '@material-ui/icons/KeyboardArrowRight';
@@ -16,12 +17,10 @@ const defaultSelectCellStyles = theme => ({
1617
width: '56px',
1718
maxWidth: '56px',
1819
backgroundColor: '#F4F7FA',
19-
position: 'sticky',
2020
top: 0,
2121
zIndex: 2,
2222
},
2323
fixedHeader: {
24-
position: 'sticky',
2524
top: '0px',
2625
left: '0px',
2726
zIndex: 3,

0 commit comments

Comments
 (0)