Confirm message is displayed on node save when using with some themes/modules

Created on 5 July 2023, over 1 year ago

Problem/Motivation

Some themes or modules (E.g. Gin Admin theme) change the id of the node form submit button, causing the confirm message to appear when saving a node.

Steps to reproduce

Install and enable Gin Admin Theme
Install and enable Confirm Leave
Edit an existing node, change some fields and try to save it. The "Leave Site?" confirm message will be displayed.

Proposed resolution

Change the selector to use data-drupal-selector instead of id.

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Closed: outdated

Component

Code

Created by

🇨🇷Costa Rica adiaz San José, Costa Rica

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

Comments & Activities

  • Issue created by @adiaz
  • Status changed to Needs review over 1 year ago
  • 🇨🇷Costa Rica adiaz San José, Costa Rica

    Adding patch with the proposed solution.

  • Status changed to Closed: outdated over 1 year ago
  • 🇨🇷Costa Rica adiaz San José, Costa Rica

    Sorry, I just realized that this bug its already fixed, just not released yet. Closing this issue.

Production build 0.71.5 2024