It seems that jQuery Waypoints - v1.0.2 library, packaged with this module is not compatible with Drupal 8.4+ ( jQuery 3 )

I get an error in the console regarding .load() which is no supported in jQuery 3 used in Drupal 8.4+

jquery.min.js?v=3.2.1:4 Uncaught TypeError: a.indexOf is not a function
at r.fn.init.r.fn.load (jquery.min.js?v=3.2.1:4)
at waypoints.min.js?v=1.0.2:8

Is there a way to specify a different version, like adding the library to composer?

CommentFileSizeAuthor
#4 2989739-4.patch11.69 KBdawehner

Comments

stewest created an issue. See original summary.

Chris Charlton’s picture

Still an issue?

Chris Charlton’s picture

I see errors for waypoints v1.0.2 in my Drupal 8.6.3 sites. Definitely is still an issue.

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new11.69 KB

Here is an update to waypoints 4 which fixes the issue for me.

Chris Charlton’s picture

+1 for patch in comment #4

bomoko’s picture

Status: Needs review » Reviewed & tested by the community

This works, and it somewhat critical for updated sites. Would be good to get it in, pronto.

RTBC from me.

nehajyoti’s picture

have not tested the patch myself but since it has been RTBCd applying the patch.

  • nehajyoti committed 697b683 on 8.x-1.x authored by dawehner
    Issue #2989739 by dawehner, Chris Charlton, stewest, nehajyoti, bomoko:...
nehajyoti’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.