Hi,
I’m having to post this here as I can’t find where to post for premium support?
I am using the Premium – Accordion Widget.
It is possible to Override your JS, as it is doing some very peculiar things.
I have the ‘Use Anchor Tags in the URL’ ticked and it seems to be doing something very funny with the Browser History?
Looking at your code:
n && n.length ? window.location.hash = n.join(",") : window.history.pushState("", document.title, window.location.pathname + window.location.search)
It is joining two hashed URLs together?
so when clicking Back on the Browser it shows pathname/#accordion1,accordion2 (Both Accordion Panels Open)
Also, there is an intermittent problem with your scrollTo functionality:
if (o(window).on("hashchange", l), window.location.hash ? l() : r(), c > 0) { var p = c > s.length ? s.last() : s.eq(c - 1); window.scrollTo(0, p.offset().top - 90) }
Under certain circumstances (Dependent on the length of the content in the panels), if you have Maximum number of simultaneous open panels set to 1. I assume there is some sort of race condition going on, as it is calculating the offset incorrectly, the Panel closing is being including as part of the offset calculation, as the panel opening scrolls to the wrong place.
I guess you need to wait for the Panel closing to be closed before calculating the offset and then doing the window.scrollTo
Any help much appreciated
Hi, thanks for posting. I’ll ask Alex to assist as soon as he’s back on. All of our premium support is done via email ([email protected]). Thanks again :)