Trigger expand of checked parent

(function($) {
    document.addEventListener( "facetwp-loaded", function() {
        $( ".facetwp-checkbox.checked .facetwp-expand" ).trigger( "click" );
    });
})(jQuery);