Problem/Motivation

Drupal has removed the jQuery dependency from the once feature (https://www.drupal.org/node/3158256).

Even though Radix v4 mention it works with Drupal ^10.0, `text.js` has not been updated to use the new once API.

This cause the following error when opening a formatted text field:

```
Uncaught TypeError: $(...).find(...).once is not a function
```

Steps to reproduce

  • Install Drupal 10.5.2 with Radix 4.15.0
  • Open a formatted text editor in the layout builder
  • Open the inspector console

Proposed resolution

Update `text.js` to use the new once API as documented by Drupal.

CommentFileSizeAuthor
#2 3543217-2.patch2.97 KBfranknoel

Issue fork radix-3543217

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

franknoel created an issue. See original summary.

franknoel’s picture

Status: Active » Needs review
StatusFileSize
new2.97 KB
doxigo’s picture

Thanks frank, could you do me a favor and provide a MR and use let instead of var?

akashkumar07 made their first commit to this issue’s fork.

  • doxigo committed ee4981eb on 8.x-4.x authored by akashkumar07
    Issue #3543217: Uncaught TypeError: $(...).find(...).once is not a...
doxigo’s picture

Status: Needs review » Fixed

Thanks guys, merged without testing. let's hope for the best 🤞

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.