jquery.once deprecated in D10

Created on 12 January 2023, almost 2 years ago
Updated 26 August 2024, 4 months ago

This module is currently not working in Drupal 10 because library core/jquery.once is removed from Drupal 10 and replaced by core/once.

To make it work remove in stickynav.libraries.yml the dependency core/jquery.once and add core/once. In js/stickynav.js change line 24 from

var $menu = $(selector).once('stickynav').eq(0);
to
var $menu = $(once('stickynav', selector)).eq(0);

🐛 Bug report
Status

RTBC

Version

1.4

Component

Code

Created by

🇩🇪Germany VISIOS

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