Fix download buttons blocked by Framework7 link interception

This commit is contained in:
2026-03-09 15:04:29 -04:00
parent ff88fb09ff
commit d351d5ca2b

8
app.R
View File

@@ -290,8 +290,12 @@ ui <- f7Page(
HTML( HTML(
" "
$(document).on('click', '#pdfLink', function(event) { $(document).on('click', '#pdfLink', function(event) {
event.preventDefault(); // Prevent the default link behavior event.preventDefault();
window.open($(this).attr('href'), '_blank'); // Open in a new tab window.open($(this).attr('href'), '_blank');
});
$(document).on('click', '#download_filtered, #download_all', function(event) {
event.preventDefault();
window.open($(this).attr('href'), '_self');
}); });
" "
) )