tuupola / jquery_chained

Chained Selects for jQuery and Zepto
https://appelsiini.net/projects/chained/
589 stars 283 forks source link

Plugin doesn't work with jQuery v1.12.4 #70

Open lethalmiko opened 6 years ago

lethalmiko commented 6 years ago

I wanted to use this plugin with latest Wordpress 4.9.1 which uses jQuery v1.12.4 but it doesn't work, unless I force Wordpress to use jQuery v1.10.2 which the plugin uses. This breaks other things. How can I solve this problem?

tuupola commented 6 years ago

What is the issue or error with v1.12.4?

lethalmiko commented 6 years ago

It does not do the chain selection. All the dependant fields (instead of being blank until you make a selection from the first select) have data in them already before you select anything. ie only the first select with BMW and Audio should have data in it and the rest should be disabled until a selection is made.

Steps to reproduce:

  1. Copy jQuery v1.12.4 from the Wordpress package and place it in the same folder as the demo.html file.
  2. Edit the demo.html file and replace the original path to point to the downloaded jQuery v1.12.4.
  3. Run demo.html and the chain selection fails.
lethalmiko commented 6 years ago

P/S - Wordpress 4.9.1 also has jquery-migrate.min.js?ver=1.4.1 in it. It makes no difference to the behaviour whether it is included or not.