AJAX error on voting

Created on 16 June 2022, about 2 years ago
Updated 9 March 2024, 4 months ago

Problem/Motivation

I have a simple poll on my home page, which is a block on a panels page. Voting was working as expected when originally implemented, using AJAX submit. I am now getting an AJAX error, as admin, when clicking the Vote and View results buttons:

An error occurred while attempting to process /en/poll/1?ajax_form=1&view_mode=block&_wrapper_format=drupal_ajax: ajax.$form.ajaxSubmit is not a function

The issue is that jquery.form is no longer being loaded on the page.

Steps to reproduce

Not sure exactly what caused this to stop working.

Proposed resolution

Add core/jquery.form as a dependency to ensure it's always loaded.

πŸ› Bug report
Status

Postponed: needs info

Version

1.5

Component

User interface

Created by

πŸ‡¨πŸ‡¦Canada smulvih2 Canada 🍁

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