Does not work in Drupal 10 (Version 10.0.0-beta2)

Created on 10 November 2022, over 1 year ago
Updated 19 July 2023, 12 months ago

Problem/Motivation

jQuery.once() is no longer a function in Drupal 10 and as a consequence, the module does not work at all really; it shows the floating Settings icon but clicking it has already been smashed by the following on page load...

Uncaught TypeError: $(...).find(...).once is not a function
    at Object.attach (cool_editor_tabs.js?v=1.x:9:48)
    at drupal.js?v=10.0.0-beta2:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.0.0-beta2:162:34)
    at drupal.init.js?v=10.0.0-beta2:32:12
    at HTMLDocument.listener (drupal.init.js?v=10.0.0-beta2:20:7)
drupal.js?v=10.0.0-beta2:64 Uncaught TypeError: $(...).find(...).once is not a function
    at Object.attach (cool_editor_tabs.js?v=1.x:9:48)
    at drupal.js?v=10.0.0-beta2:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.0.0-beta2:162:34)
    at big_pipe.js?v=10.0.0-beta2:98:14
    at Array.forEach (<anonymous>)
    at bigPipeProcessDocument (big_pipe.js?v=10.0.0-beta2:97:55)
    at big_pipe.js?v=10.0.0-beta2:121:12
drupal.js?v=10.0.0-beta2:64 Uncaught TypeError: $(...).find(...).once is not a function
    at Object.attach (cool_editor_tabs.js?v=1.x:9:48)
    at drupal.js?v=10.0.0-beta2:166:24
    at Array.forEach (<anonymous>)
    at Drupal.attachBehaviors (drupal.js?v=10.0.0-beta2:162:34)
    at HTMLUListElement.<anonymous> (ajax.js?v=10.0.0-beta2:1324:20)
    at Function.each (jquery.min.js?v=3.6.1:2:3003)
    at S.fn.init.each (jquery.min.js?v=3.6.1:2:1481)
    at Drupal.AjaxCommands.insert (ajax.js?v=10.0.0-beta2:1322:21)
    at ajax.js?v=10.0.0-beta2:996:41

I think this is likely due to line 9 of cool_editor_tabs.js file.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom SirClickALot Somerset

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024