The current JavaScript used to create Chosen instances via Drupal behaviors is not performant and lacks modularization and extensibility.

Will provide patches for both 8.x and 7.x shortly.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

markcarver created an issue. See original summary.

markhalliwell’s picture

Status: Active » Needs review
FileSize
7.72 KB
7.64 KB
nagy.balint’s picture

Hi!

Thanks for the patch!

Can you integrate this commit? http://cgit.drupalcode.org/chosen/commit/?id=0cbc043

markhalliwell’s picture

markhalliwell’s picture

FileSize
7.95 KB

Ugh, wrong 7.x patch... sorry.

nagy.balint’s picture

Thanks!

I committed the d8 version first.

There was a typo at three places, drupalSsettings instead of drupalSettings.

Otherwise the code worked for me for what i tried, but we can wait in dev if it works on the long term as well.

nagy.balint’s picture

nagy.balint’s picture

markhalliwell’s picture

Version: 8.x-2.x-dev » 7.x-2.x-dev
FileSize
7.92 KB
422 bytes

Hm. Not sure how this erroneous line got into the 7.x patch. Here's an updated version of the patch.

nagy.balint’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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