I had the same problem and could not find the answer anywhere. In fact, a couple of sources said this was simply not possible.
With further play, I found a working solution. It may not be great, but it works like a charm.
First, just make sure the links you want to click and that are immune to accordion controls are easily identifiable. I had a class on mine.
$('.stats a').click(function(){ expander.accordion('disable'); window.open($(this).attr('href')); setTimeout ( function() { expander.accordion('enable'); }, 250 );
});
Essentially, this is tapped when a link is clicked inside the accordion header. When this is the case, the accordion is temporarily disconnected, retaining it as usual when fired. Then the link opens in this case in a new window, but you can also use document.location
If we turn on the accordion again, it will still shoot and switch the accordion. I found that a super-short timeout provides enough latency.
Hope this helps someone!
Andrew Jones
source share