View Exposed filter disappears once selection is made.

Created on 18 April 2024, 7 months ago

Problem/Motivation

On ^3.0@alpha and ^2.0@RC, when one Selects the 2nd item, all filters (parent and child) disappear with a console error after selection.
Also the actual select doesn't get hidden by class .shs-enabled.form-select.custom-select.shs-processed.hidden

Console error:

VM2067 drupal.js:64 Uncaught TypeError: Cannot read properties of undefined (reading 'models')
    at Array.<anonymous> (AppView.js?v=10.2.1:63:79)
    at Function.each (jquery.min.js?v=3.7.1:2:3129)
    at r.render (AppView.js?v=10.2.1:62:9)
    at HTMLSelectElement.<anonymous> (VM2101 shs.js:58:18)
    at Function.each (jquery.min.js?v=3.7.1:2:3129)
    at ce.fn.init.each (VM2064 jquery.min.js:2:1594)
    at Object.attach (VM2101 shs.js:28:87)
    at VM2067 drupal.js:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (VM2067 drupal.js:162:34)

Steps to reproduce

  1. Create a view with taxonomy terms and an exposed filter.
  2. Selection Type: Simple hierarchical select (Depth as needed)
  • This happens whether the filter is for "Content: Has taxonomy terms (with depth)" or just a "taxonomy field" filter.
  • When one selects the last filter (depth 1), the filters disappear.
  • Drupal 10.2.1

    I didn't see a current issue specifically pertaining to this, so thought I'd report it.

    🐛 Bug report
    Status

    Active

    Version

    3.0

    Component

    Code

    Created by

    🇳🇿New Zealand stewest Wellington

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

    Comments & Activities

    Production build 0.71.5 2024