Make form actions unique to prevent incorrect focus on ajax submit when using multiple polls on a page

Created on 16 April 2019, over 5 years ago
Updated 23 March 2024, 8 months ago

When using something like paragraphs to render multiple polls on a page, the data-drupal-selector attribute on the vote submit button is the same for all polls.

This results in an action that the submit button of a different poll is focused when submitting the first poll for instance. You will scroll to the first poll with a button with the same drupal selector as the one selected.

Creating a unique id on the action elements can resolve this.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands jefuri

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

Merge Requests

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.71.5 2024