autosubmit still depends on jquery.once

Created on 6 December 2023, 12 months ago
Updated 8 April 2024, 8 months ago

Problem/Motivation

ctools_views.libraries.yml still has core/jquery.once as a dependency, and auto-submit.js still uses the old way of chaining once().

After updating to Drupal 10, this now produces a `Uncaught TypeError: $(...).add(...).filter(...).once is not a function` JavaScript error.

A current workaround is to use https://www.drupal.org/project/jquery_once β†’ for a quick resolution, but still is not a very forward-looking solution.

πŸ“Œ Task
Status

Closed: duplicate

Version

4.0

Component

CTools Views

Created by

πŸ‡¨πŸ‡¦Canada michael.hebert

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

Comments & Activities

  • Issue created by @michael.hebert
  • First commit to issue fork.
  • πŸ‡¦πŸ‡·Argentina tguerineau

    Hello,

    I am looking to contribute to this issue and have set up a Drupal 10 environment with the CTools module version 4.0.4 as mentioned. However, I am unable to find the auto-submit.js file and the ctools_views.libraries.yml file within the module's directory. The once function also does not seem to be used anywhere in the module's current version.

    Could you please confirm if the issue is indeed present in version 4.0.4 of the CTools module? If it's a different version that is affected, could you please specify so I can attempt to reproduce the issue accurately?

    Thank you for any clarification you can provide.

  • πŸ‡¨πŸ‡¦Canada michael.hebert

    I'm sorry, I did not realize that this functionality was already provided by a patch on an existing issue, and that there were new patches available that fix this issue.

    https://www.drupal.org/project/ctools/issues/2475595 ✨ Views exposed filters missing autosubmit option Needs review

    So this issue can be closed as it is a duplicate and it's already handled.

    Thank you for looking into it.

  • Status changed to Closed: duplicate 8 months ago
  • πŸ‡ΊπŸ‡ΈUnited States japerry KVUO
Production build 0.71.5 2024