Has anyone experience leaflet glitching when using downloadHandler() in r shiny?

...

I can't get this to work every time but occasionally (enough to waste a lot of time trying to debug) a leaflet map within the same tabBox as a downloadHandler() will 'glitch' after downloading csv, rmd, etc. Anybody run into this problem? It happens on deployed and local but intermittently. The reprex can be found at the stackoverflow link above, which gives the framework of what I'm trying to convey. However, it doesn't glitch or I can't get it to glitch within a reprex. Any thoughts or help would be much appreciated. Thanks.