Hi Angelru-4290,
The button doesn't affect the sticky header function, you can just ignore the button's click event. I test the sample code, it works as expected. Try to copy the code and test in your sample: https://github.com/luismts/StickyHeader/