- Issue created by @simon2d
- Status changed to Postponed: needs info
about 1 year ago 3:15pm 25 September 2023 - π³πΏ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.select2I 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 6:16pm 5 October 2023 - πΊπΈ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.