dantesinferno → created an issue.
dantesinferno → created an issue.
dantesinferno → created an issue.
Hi!
I had the same error and the patch worked but I also have another console error:
Uncaught TypeError: The element must be an instance of Element
I've been trying to find another patch or something to fix this but there's nothing available right now.
I did some debug for this and found that the problem is in the following function:
Drupal.ajax.bindAjaxLinksWithProgress = function (element)
I'm pasting here the full console error:
Uncaught TypeError: The element must be an instance of Element
at u (once.js:122:11)
at i (once.js:156:25)
at a (once.js:280:5)
at augmentedOnce (jquery.once.bc.js?v=9.5.9:26:12)
at Drupal.ajax.bindAjaxLinksWithProgress (paragraphs_ee.admin.js?rwko5d:223:5)
at Drupal.paragraphs_features.add_in_between.initParagraphsWidget (paragraphs_ee.admin.js?rwko5d:120:19)
at paragraphs-features.add-in-between.js?rwko5d:123:53
at NodeList.forEach (<anonymous>)
at paragraphs-features.add-in-between.js?rwko5d:122:58
at Array.forEach (<anonymous>)
Maybe it's a conflict with the once.js library?
Per my last comment, here's the right file.
I came up with a temporal solution that works for me, I'm attaching the patch just in case it helps/works for someone else.
Hi there. I've been facing a similar issue with the combined facets option. I have 2 taxonomy reference fields (primary and secondary) pointing to the same vocabulary, I created 2 different facets for the primary and secondary field, then in the secondary I chose the combine option and selected the primary field using "Add that facet's results to this facet's results (union).", I also have other facets defined.
The issue comes up when I choose a value from other facet, the search gets filtered correctly and when I look for a specific value in the combined facet I see there are X number of results but when I choose it, the view doesn't show those contents, I think this is because the term listed in the combined facet is only selected in the primary field, the search engine knows about those contents but the query is not properly built when this specific situation happens.
I tried changing the url parameter by directly pointing to the other facet and then I can see the missing results.
The code provided above didn't work for me and I'm not that familiar with the facet events so I'm kinda lost on how to proceed here.
Steps to reproduce
- Create search API view for search
- Create a primary facet (checkboxes) for a taxonomy reference field for example a category list
- Create a secondary facet (checkboxes) for the same taxonomy reference field as the previous item, select the the primary facet and then the "Add that facet's results to this facet's results (union)" option.
- Create a facet (checkboxes) for any other taxonomy reference field let's say a list of brands
- Place facet block for combined category facet on search page.
- Place facet block for brands facet on search page.
- Filter by brand facet
- Check the results on category facet and choose a term that is marked in the not-combined facet
- The result is empty
- Change the URL parameter in the browser with the primary field machine name
- The result is X number of nodes