I need to hide the scrollbars for a div component while still retaining scrolling functionality. I used webkit for this as follows :
const styles = {
noscroll:{
'&::webkit-scrollbar':{
width:'0rem',
height:'0rem'
}
}
}
and then call it in my code as
<ScrollSyncPane style={styles.noscroll} id="noscroll">
<Grid
style={styles.noscroll}
cellRenderer={this.headerRenderer}
columnCount={colm[0].length}
columnWidth = {150}
height = {70}
rowCount = {colm.length}
rowHeight = {70}
width = {1250}
/>
</ScrollSyncPane>
As per suggestions I read on SO I replaced '&' with '*' and even wrote the JSS as
scrollbar:{
width:0,
height=0
}
inside noscroll object in styles. But none of this seems to work. Is it because it is a ScrollSync component?