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

Created on 14 May 2024, about 1 month ago
Updated 15 May 2024, about 1 month 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"

πŸ› Bug report
Status

Active

Version

10.2 ✨

Component
FormΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡©πŸ‡ͺGermany woldtwerk Stralibu

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

Comments & Activities

Production build 0.69.0 2024