Login

To vote or comment, enter your email and we'll send a magic link

5

Preload + User selections

open

Preloaded facet choices should ideally show up in the User Selections box. Currently they aren't.

11 months ago

Comments (1)

Temporary solution:

document.addEventListener('facetwp-loaded', function() {
    if (! FWP.loaded) { // on pageload
        FWP.parseFacets(); // grab the selected values from the DOM
        FWP.hooks.doAction('facetwp/loaded'); // this hook rebuilds the user selections
    }
});
11 months ago