Problem/Motivation

jQuery.once is deprecated and will be removed from Drupal 10.

Steps to reproduce

1. Replace jquery.once dependencies with core/once in *.libraries.yml.
2. Replace usages of .once() by once() in javascript files.

Comments

Harshita mehna created an issue. See original summary.

harshita mehna’s picture

Status: Active » Needs review
StatusFileSize
new1.06 KB

Hello Maintainers,
I have provided a patch to fix this issue.
To get more information visit https://www.drupal.org/node/3158256
Please review it.

Thanks!

harshita mehna’s picture

Here the use of once() is not seen in .js files.
So now only we need to replace core/jquery.once to core/once in the libraries.yml file.

akshay kashyap’s picture

Status: Needs review » Reviewed & tested by the community

@Harshita mehna

Thanks for the Work.

I have reviewed and tested the #2 patch it looks good Replace jquery.once with core/once in the library file.yml.

Moving to RTBC

keshavv’s picture

Status: Reviewed & tested by the community » Fixed
keshavv’s picture

Status: Fixed » Closed (fixed)