I have an accordion in one page and in it I have a form that I submit and upload an image .
And when I submit it, I load the same page to display the uploaded image.
And when I reload the page I want to check if the accordion was opened or not, so I send an variable to the page and if that variable has a value then the accordion should be opened when the page reloads.
And I have this working but the problem is the accordion animation, it is showing when I reload the page, so it is animating to open and that is not looking good.
So I what to know if I can use
app.accordion.open(’#spa’)
without it animating?
Ok so I solved it by adding this when the page loads. Good!
$$(document).find(’#spa’).addClass(‘accordion-item-opened’);
Thanks.