Using of deprecated syntax of "once" feature

Created on 24 July 2023, over 1 year ago

Problem/Motivation

I get error in console:

And in my case it breaks my cypress tests.
The problem in facets-views-ajax.js:

$('.facets-reset-link').once().click(function (e) {
 e.preventDefault();
 updateFacetsView($(this).attr('href', atob($(this).attr('data-reset-link-hash'))), current_dom_id, view_path);
});

Proposed resolution

Update "once" code according https://www.drupal.org/node/3158256

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024