jquery TypeError $element.prop is not a function

Created on 30 October 2016, about 8 years ago
Updated 23 August 2024, 3 months ago

Has something to do with select2/js/Drupal.select2.js

When editing a node in admin I get the following js error:

TypeError: $element.prop is not a function (line 476) in Drupal.select2.js
elementTagName = $element.prop("tagName"),

Seems to me like this Drupal.select2.js is not compatible with 1.4 which is what drupal 7 core is using. If I set it to 1.9 for core (via jquery update) the error goes away and the admin node edit page renders perfectly.

I know it's counter intuitive, but because drupal core uses 1.4 can you fix it so that 1.4 also works. I need 1.4, so that views (and any unforeseen admin related modules) works properly.

Thanks.

Using Select2 - 7.x-1.0+6-dev

🐛 Bug report
Status

Needs review

Version

1.0

Component

Field widgets

Created by

🇺🇸United States cj-a-min

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024