Updated the once structure to conform with the new once lib

Created on 30 August 2024, 3 months ago

Problem/Motivation

The following error is displayed on Drupal 10 sites that make use of the fivestar script "Uncaught TypeError: $this.find(...).once is not a function".

Steps to reproduce

Open a page that makes use of start ratings using the fivestar script and look in the console for the error.

Proposed resolution

Drupal provides guidelines to adapt how once is used in javascript - https://www.drupal.org/project/drupal/issues/3183149 β†’ . A patch has been created to update the line of code accordingly, the patch will be posted in the comments below.

Remaining tasks

Review and testing from the community.

πŸ› Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands roaldnel

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

Comments & Activities

Production build 0.71.5 2024