jquery.once deprecated in D10

Created on 12 January 2023, over 1 year ago
Updated 11 October 2023, 9 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.69.0 2024