Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: $(...).zIndex is not a function #18

Open
LubomirKurpel opened this issue Jan 23, 2023 · 0 comments
Open

Uncaught TypeError: $(...).zIndex is not a function #18

LubomirKurpel opened this issue Jan 23, 2023 · 0 comments

Comments

@LubomirKurpel
Copy link

Trying to implement this plugin into Drupal website, I found out it (probably) relies on older version of jQuery UI, resulting in error:

Uncaught TypeError: $(...).zIndex is not a function

Digging into the issue threads I found out the solution here:

https://www.drupal.org/project/jquery_update/issues/3014255

In the .patch file attached, simple change on line 297 from:

inst.dpDiv.zIndex($(input).zIndex()+1);

to:

inst.dpDiv.css('z-index', $(input).css('z-index')+1);

solves this issue. So I am just reporting this if someone else stumbled upon the same problem.

Also thanks for a nice plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant