As the title states, my MixItUp instance runs 4 times on page load. And since it does this the onMixEnd callback runs 4 times as well. I have a script to scroll the user back to the top of the page in my onMixEnd callback so on page load it scrolls to the filter section of my page, which is not ideal. I have to "hack" it by adding an iterator just to avoid the scroll on page load. Is there something. I may have done wrong?
I am also using WordPress and Bootstrap and some of my filters are also buttons for controlling Bootstrap Tabs to show different text above the mix loop. There are a couple sets of checkboxes, a search field and a couple of range sliders. Though I am not sure why any of that would have any effect on MixItUp running 4 times on load.
As the title states, my MixItUp instance runs 4 times on page load. And since it does this the
onMixEnd
callback runs 4 times as well. I have a script to scroll the user back to the top of the page in myonMixEnd
callback so on page load it scrolls to the filter section of my page, which is not ideal. I have to "hack" it by adding an iterator just to avoid the scroll on page load. Is there something. I may have done wrong?Configuration
Markup
I know there is a lot of markup but I didn't want to strip out too much so you could see all the filtering options I have... (It's a lot).
I am also using WordPress and Bootstrap and some of my filters are also buttons for controlling Bootstrap Tabs to show different text above the mix loop. There are a couple sets of checkboxes, a search field and a couple of range sliders. Though I am not sure why any of that would have any effect on MixItUp running 4 times on load.
Thanks, Rob