Allow multiple submits of form[method="dialog"]

Created on 14 May 2024, 7 months ago
Updated 3 July 2024, 6 months ago

Problem/Motivation

Drupal has build in protection of submitting forms twice.
This applies to ''submit.singleSubmit'' and "form:not([method~="GET"])".
The second means all forms which are not method GET. This would include get (because case insensitive i not used) post, dialog and a form without a method (defaults to GET).

This feature prevents you from closing dialogs twice.

Steps to reproduce

<dialog>
<form method="dialog">
  <button>close</button/>
</form>
</dialog>

Proposed resolution

'form:not([method~="GET" i]):not([method~="dialog" i])'

allow submitting dialog twice
also check for method="get"

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
FormΒ  β†’

Last updated 3 days ago

Created by

πŸ‡©πŸ‡ͺGermany woldtwerk Stralibu

Live updates comments and jobs are added and updated live.
  • JavaScript

    Affects the content, performance, or handling of Javascript.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024