wotz don't know how helpful this would be but this is happening because its on hover, but if you can disable the hover prop somewhere, than it might be resolved and only open on click?
I'm not a react developer, so I'll tag Nour in here - but in case he's not around, I just wanted to mention that - likely something that would be in the buttonProps.