Javascript not loading for

Created on 25 September 2023, about 1 year ago
Updated 5 October 2023, about 1 year ago

Problem/Motivation

Upgrading webform module from 6.1.3 -> 6.2@beta

Observing when upgrading the webform module, our navbar has stopped loading correctly.

When logging into admin panel the page looks normal.

Please see the attached photos.

Would appreciate anyones advice for resolving this issue. Thanks.

Steps to reproduce

Upgrading webform module from 6.1.3 -> 6.2@beta

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: cannot reproduce

Version

6.2

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand simon2d

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

Comments & Activities

  • Issue created by @simon2d
  • Status changed to Postponed: needs info about 1 year ago
  • Are there browser console errors?

  • πŸ‡³πŸ‡ΏNew Zealand simon2d

    Hi @cilefen thanks for your comment, please bear with me I am not so 'techy'

    Checking the console we are getting a bunch of errors using the .once function, which I believe is part of our jquery.

    Our scripts.js file is calling this. It looks like we are directly using the jquery from the webform module.

    global-styling:
    js:
    assets/build/js/scripts.js: { scope: footer }
    assets/build/js/utils.js: { }
    css:
    base:
    assets/build/css/base/base.theme.css: {}
    dependencies:
    - webform/libraries.jquery.select2
    - webform/webform.element.select2

    I am assuming the .once feature has been removed and will possibly require a change of our javascript. Reading into it here: https://www.drupal.org/node/3158256 β†’

    --

    I will do some more digging and get back to you. Thanks.

  • Status changed to Closed: cannot reproduce about 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    In 6.2.x there are no direct calls to the .once method.

    The only example in the code base is in webform/modules/webform_clientside_validation/js/webform_clientside_validation.ife.js

    $(document).once && $(document).once('cvjquery');

    This code checks that the once method exists before calling it.

    I think the error is coming from your custom javascript.

Production build 0.71.5 2024