In order to avoid header scrolling with the table when the table is scrollable for IE 11, I am using
document.querySelectorAll('.tableWrapper').forEach((tableWrapper) => {
tableWrapper.addEventListener('scroll', () => {
var translate = 'translate(0,' + tableWrapper.scrollTop + 'px)'
tableWrapper.querySelector('thead').style.transform = translate
})
but the header vibrates when scrolling the table. Does anyone have a solution to avoid header flickering while scrolling the table?
I used position: sticky but IE 11 doesn't support it. It works for other browsers.
The header flickers constantly when scrolling a long table. The header should remain at the top while the user scrolls up and down.