Empty text in Facet duplicates on AJAX

Created on 12 February 2021, almost 4 years ago
Updated 10 April 2024, 8 months ago

I have the facet, which should display the text when empty.
After changing another facet, this one is updated by AJAX and empty text duplicated.

The facet has next structure:

<div data-drupal-facet-id="my_facet" class="facet-empty">
  <div data-drupal-facet-id="my_facet" class="facet-empty">
    <div class="facets-widget-links"></div>
    No data available.
  </div>
  No data available.
</div>

The root cause is that ajaxFacetBlockView replaces the facet by selector "#facet-blockmy-facet .facets-widget-links".

πŸ› Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia kiseleva.t

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024