Add a download button inside expander

Hello,

I am trying to add a Download Button inside an expander. However, when I click on the download button it refreshes the page. Is there a way to prevent this behavior?

Thanks in advance.
Kasun