How to download a file when jitsi call is open?

Hi! I need your help. In my project, I open jitsi-call in a big or small modal. And the user can interact with page when the jitsi-call is in the small modal. Problem appears when the user wants to download a file: the jitsi-call edns. How to prevent the closing of the jitsi-call in this case?

<a href={file.url} download={}>Download File</a>

As I understand, it happens because of beforeunload or unload event. I set the attribute download, but it doesn’t help(((