Remove useage of $(...).once, as it is removed in drupal 10

Created on 19 June 2023, over 1 year ago
Updated 13 July 2023, over 1 year ago

I update my site from drupal 9 to drupal 10, then get this error $(...).once is not a function.

I can see in file simple_popup_blocks.js, line 113 to line 116:

$(css_identity + block_id).once().
wrap($('

'))
// Hide the popup initially
$('.' + modal_class).once().hide()

$(...).once() is used twice.

Can you help to change this bit code?

🐛 Bug report
Status

Closed: duplicate

Version

3.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