SubmitButton selector broken with Gin theme

Created on 8 November 2023, 8 months ago
Updated 9 November 2023, 8 months ago

Problem

When using Gin Theme, the functionality is broken.

Analysis

The selectors for the button is bound to IDs like "edit-submit" etc as implemented here. The buttons in Gin implement different ids Like "edit-submit--2--gin-edit-form".

Proposed resolution

Use the "data-drupal-selector" attribute to select the buttons, which should work across themes. Here's an example of a button i came across.

<input data-drupal-selector="edit-submit" type="submit" id="edit-submit--2--gin-edit-form" name="op" value="Save (this translation)" class="button button--primary js-form-submit form-submit" form="node-product-edit-form">

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria daniel.pernold

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

Comments & Activities

Production build 0.69.0 2024