Problem/Motivation

After updating the Chosen module from version 4.x to 5.x using Composer:
the Simple Hierarchical Select: Chosen widget no longer works and throws a JavaScript error:
Uncaught TypeError: context.querySelectorAll is not a function
Reverting back to Chosen 4.x fixes the issue:

Steps to reproduce

1. composer require 'drupal/chosen:^5.0'.
2. composer require 'drupal/shs:^2.0'
3. Turn on modules ( you can install js library using command: drush chosenplugin)
4. Create taxonomy field reference and select Simple hierarchical select: Chosen widget.
5. On node creation form the field will not be visible and in console we get error

Issue fork shs-3511731

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

crafter created an issue. See original summary.

crafter’s picture

Status: Active » Needs work
crafter’s picture

Issue summary: View changes

crafter’s picture

Component: Code » Compatibility with other modules