When a copy button is hovered after a click, it doesn't display its content anymore. I'm not sure if this fix goes and fit to your concerns and to the function atm, I could check a bit deeper if needed.
(I'll update the tests if the solution is approved)
Bug reduced test case : launch main branch, go on any page, click on any copy button, then hover it.