Scroll to Target issue

So my website has been fine, but noticed that a few of my Scroll to target buttons don’t work.

The issue is when I click the button, it continuously opens a new tab to the top of the page, but the previous tab scrolls to the target as normal.

Anyone experienced this? Not happening with all buttons, I’ve cleared the cache, deleted files from the server and done a fresh upload. When I test in blocs it works fine. Also tried on multiple devices and browsers.

So I fixed this by deleting the DIV container the buttons were inside and re-adding the div and the buttons for anyone wondering