Category dropdown filter after return (browser back)
-
Hi,
I have an issue with the category dropdown on the Shop page.
Steps to reproduce:
- Go to shop page
- Filter by category or subcategory
- Click back on the browser
- Dropdown open/close does not work
The video is attached to show this issue.
Regards
Attachments:
You must be
logged in to view attached files.
Hello,
To fix this issue, try to add the following code snippet to Theme Settings -> Custom JS -> On document ready
if ( 'object' === typeof woodmartThemeModule && woodmartThemeModule.hasOwnProperty('categoriesAccordion') && 'function' === typeof woodmartThemeModule.categoriesAccordion) {
window.addEventListener('popstate', function() {
woodmartThemeModule.categoriesAccordion();
});
}
Kind Regards
This fixed the issue.
Thank you!
You are welcome. Feel free to contact us if you have any further questions.
The topic ‘Category dropdown filter after return (browser back)’ is closed to new replies.