Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
We ran into an issue where the auto_download.js was conflicting with js that controlled accordions on our page. It seemed that the auto_download.js was probably getting executed before the accordion script had a chance to fully initialize.
Proposed resolution
I created a patch that adds a delay of 1 second to auto_download.js and our accordions now work normally.
if (link.dataset.downloadEnabled === 'true') {
setTimeout(function() {
location.href = link.href;
}, 1000);
}
This probably isn't a widespread issue but thought I would add a patch for it just in case someone else ran into a similar issue.
Comment | File | Size | Author |
---|---|---|---|
views-data-export-auto-download-js-delay.patch | 600 bytes | phernand42 | |
|
Comments