Login

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

2

Preload + User selections

open

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

2 weeks 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
    }
});
1 week ago