Problem/Motivation

When using the Chosen js library, the class used to target the select element (.lang-dropdown-select-element) is inherited by the Chosen div. This causes Uncaught TypeError: ldSettings is undefined in lang_dropdown.js

Steps to reproduce

Install and enable Chosen. In Chosen's settings you might need to adjust the Minimum number of options for single select if you have a small number or languages.

Proposed resolution

Target the select element in in lang_dropdown.js with $('select.lang-dropdown-select-element')

Comments

Peacog created an issue. See original summary.

peacog’s picture

Status: Active » Needs review
StatusFileSize
new463 bytes

Here is a patch.

adiatis’s picture

Patch solved the problem.

kala4ek’s picture

Assigned: Unassigned » kala4ek

  • kala4ek committed 59051d4 on 8.x-2.x authored by Peacog
    Issue #3190976 by Peacog, adiatis, kala4ek: Uncaught TypeError:...
kala4ek’s picture

Assigned: kala4ek » Unassigned
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.