$(...).once is not a function when using 'Widget 2' - Drupal 10

Created on 30 July 2024, 4 months ago
Updated 31 July 2024, 4 months ago

Problem/Motivation

When using 'Widget 2' as type of widget (Widget 2 is with ♥ and count) on a Drupal 10 website, A browser console error appears: $(...).once is not a function in the file likeit_widget_2.js.
This is caused by the line $('.likeit-widget-2').once('likeit-widget-2').each(function()

Steps to reproduce

  • Install the module on a Drupal 10 website
  • Choose 'Widget 2' as type of widget
🐛 Bug report
Status

RTBC

Version

3.1

Component

Code

Created by

🇱🇧Lebanon yara mezher

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024