I have a twig that displays a page sidebar twice on a page - once for mobile and next for the desktop. In such a case, the javascript on a facet displayed multiple times on a page does not work twice.

bug

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gauravjeet created an issue. See original summary.

gauravjeet’s picture

Issue summary: View changes
gauravjeet’s picture

Status: Active » Needs review
FileSize
733 bytes
23.46 KB

Here is the patch. A screenshot of facets after applying this patch.

patch applied

gauravjeet’s picture

Title: Same facet used more than once on a page - soft limit does not work correctly » If same is facet used more than once on a page - soft limit does not work correctly
gauravjeet’s picture

Title: If same is facet used more than once on a page - soft limit does not work correctly » If same facet is used more than once on a page - soft limit does not work correctly
b_sharpe’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
881 bytes

Thanks, works great! Rerolled strictly so patch would apply properly in composer as had 'a/facets' path, no code change.

StryKaizer’s picture

Status: Reviewed & tested by the community » Fixed

Thx all!

  • StryKaizer committed 3f08741 on 8.x-1.x authored by b_sharpe
    Issue #2910421 by gauravjeet, b_sharpe: If same facet is used more than...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.