This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Accordion Widget – Premium Version

7 years ago · Last reply by Andrew Misplon 7 years ago

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

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 7 years, 2 months ago

    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 :)

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread