I have integrated Weglot for translations on my website, aigle.ca. Due to issues with their widget, I am using link hooks instead. You can find more information about link hooks at: weglot.com link-hooks
However, when scrolling down the page and the menu becomes sticky, the links stop working properly as they only anchor to the top of the page (due to being hashtags). Additionally, the active language indicator does not display correctly during scroll.
I attempted using e.preventDefault(); to prevent this issue but it did not resolve the problem. It is perplexing why a sticky header would disrupt the functionality of the Weglot plugin.
If anyone has insights into what might be causing this or suggestions for a solution, please let me know.