Merge pull request #1069 from ubavic/fix-datatable-size

fix: remove overflow
This commit is contained in:
Rafael Taranto 2022-01-26 09:01:07 +00:00 committed by GitHub
commit 71b5133554

View file

@ -185,12 +185,12 @@ const DataTable = ({
<TBody className={classes.body}>
{loading && <H4>Loading...</H4>}
{!loading && R.isEmpty(data) && <EmptyTable message={emptyText} />}
{!R.isEmpty(data) && (
{!loading && !R.isEmpty(data) && (
<AutoSizer disableWidth>
{({ height }) => (
<List
// this has to be in a style because of how the component works
style={{ overflow: 'inherit', outline: 'none' }}
style={{ outline: 'none' }}
{...props}
height={loading ? 0 : height}
width={width}