Boolean item with List of checkboxes widget causes js error

Created on 8 July 2023, over 1 year ago
Updated 26 March 2024, 8 months ago

Problem/Motivation

I have a boolean field in the search index and a facet defined on that field has a js syntax error occurring in browser
console on /admin/config/search/facets/{facet}/edit page:

Uncaught Error: Syntax error, unrecognized expression: input[name="facet_settings[boolean_item][settings][off_value]"
    at se.error (jquery.min.js?v=3.6.3:2:13911)
    at se.tokenize (jquery.min.js?v=3.6.3:2:21922)
    at se.select (jquery.min.js?v=3.6.3:2:22749)
    at Function.se [as find] (jquery.min.js?v=3.6.3:2:7196)
    at E.fn.init.find (jquery.min.js?v=3.6.3:2:25319)
    at new E.fn.init (jquery.min.js?v=3.6.3:2:25808)
    at E (jquery.min.js?v=3.6.3:2:1051)
    at states.js?v=9.5.10:85:9
    at Array.forEach (<anonymous>)
    at states.Dependent.initializeDependee (states.js?v=9.5.10:78:35)

The facet appears to function ok, but the js error on the facet edit page causes many form widgets to display as uncollapsed, e.g. combine facets setting.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇳🇿New Zealand jonathan_hunt

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