Issue Bug Closed

#105758Button value is not submitted if t3js-modal-trigger is used

Benjamin Franzke 12/04/24, 09:49 updated 08/12/25, 14:35

Description

A form button value is not submitted if the CSS class t3js-modal-trigger is used to trigger a confirmation modal.

Example code:

<button
  type="submit"
  class="btn btn-default t3js-modal-trigger"
  form="myform"
  name="foo"
  value="bar"
>Remove</button>
<form id="myform" method="post"></form>

Expected payload to be sent to the server when confirmation modal is clicked: ['foo' => 'bar']
Actually sent: []

Reviews 3