jquery.ui.monthpicker icon indicating copy to clipboard operation
jquery.ui.monthpicker copied to clipboard

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

Open LubomirKurpel opened this issue 2 years ago • 0 comments

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!

LubomirKurpel avatar Jan 23 '23 04:01 LubomirKurpel