Hi,
Can you elaborate if it is a custom button on the CRM ribbon or is it happening for CRM default buttons.
Incase it is happening only for a custom button then you need to go to the JS file and its function which is being called from the button.
For this you may verify the customization xml file.
Thanks,
Anubhav Bajpai