Button goes to the other pages when switching tabs

Hi. So, I’m working on a project that involves a slide out overlay with lots of tabs. Everything is normal when you are switching between tabs but as soon as I hover a button for example the Add Notes button and then switch to another tab/page, it kind of goes with the other page like it’s sticking. Btw, every button on the tabs does have their own function and whenever this bug happens, the button below the sticking overlayed button still works as it is. So, it’s just sticking on top.

I did put restart component state when you’re switch tabs and still have that bug. It just restarts whenever I close the whole slideout and open again.