Skip to content

Commit 3862970

Browse files
authored
Merge pull request #1073 from FaheemOnHub/fix/3602/doubleScrollbar
fix doublescrollbar occuring when datatables are placed inside modal
2 parents 884443a + a83bae5 commit 3862970

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/custom/Modal/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,12 @@ export const ModalBody = styled(Paper)(({ theme }) => ({
120120
padding: '1rem',
121121
backgroundColor: theme.palette.background.surfaces,
122122
overflowY: 'auto',
123-
height: '100%'
123+
height: '100%',
124+
scrollbarWidth: 'none',
125+
'&::-webkit-scrollbar': {
126+
display: 'none'
127+
},
128+
'-ms-overflow-style': 'none'
124129
}));
125130

126131
const StyledFooter = styled('div', {

0 commit comments

Comments
 (0)