[tagify_facets] JS error when hiding amount of results (show_numbers)

Created on 6 August 2025, 27 days ago

Problem/Motivation

The tagify-widget.js breaks and a JS error is thrown when hiding amount of results (show_numbers: FALSE).

Uncaught TypeError: Cannot read properties of null (reading 'textContent')
    at HTMLAnchorElement.<anonymous> (tagify-widget.js?t0kl0l:26:65)
    at T.each (jquery.min.js?v=4.0.0-beta.2:2:2876)
    at T.each (jquery.min.js?v=4.0.0-beta.2:2:1386)
    at HTMLUListElement.<anonymous> (tagify-widget.js?t0kl0l:23:22)
    at T.each (jquery.min.js?v=4.0.0-beta.2:2:2876)
    at T.each (jquery.min.js?v=4.0.0-beta.2:2:1386)
    at Drupal.facets.initTagify (tagify-widget.js?t0kl0l:16:13)
    at Object.attach (tagify-widget.js?t0kl0l:180:21)
    at drupal.js?v=11.2.2:166:24
    at Array.forEach (<anonymous>)

Steps to reproduce

- Apply tagify on a facet
- Uncheck "Show the amount of results"
- Load the page where the facet is displayed
=> notice the tagify element and the JS error

Proposed resolution

Fix the JS

Remaining tasks

TODO

User interface changes

TODO

API changes

TODO

Data model changes

TODO

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

🇧🇪Belgium herved

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024