Home Forums WoodMart support forum Category dropdown filter after return (browser back)

Category dropdown filter after return (browser back)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #586988

    emin
    Participant

    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.
    #587192

    Artem Temos
    Keymaster

    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

    #587373

    emin
    Participant

    This fixed the issue.

    Thank you!

    #587374

    Artem Temos
    Keymaster

    You are welcome. Feel free to contact us if you have any further questions.

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Category dropdown filter after return (browser back)’ is closed to new replies.