Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The plugin from https://github.com/harvesthq/chosen/ does stuff like this:
container_div = $("", { id: this.container_id, "class": "chzn-container" + (this.is_rtl ? ' chzn-rtl' : ''), style: 'width: ' + this.f_width + 'px;' });
Before jQuery 1.4 we can't pass in that object of attributes, and so the resulting html is simply "
Also all calls to .first() fail.
This causes the plugin to fail loading and the behavior to be broken.
The drush makefile will retrieve the main version but I think there must be a fork of the plugin to fix it for pre-1.4 jQuery. Even jquery_update's 1.3.2 isn't recent enough.
Comments
Comment #1
Hydra CreditAttribution: Hydra commentedThe drupal 6 Version of this module is no longer supported. Chosen needs version 1.6 or higher meanwhile, so I don't believe you come around including a higher jquery version manually in your theme of instance.