Expected: the form should be submitted only once - we already have the ‘disable on form state executing’ logic in place on the button.
Actual: the form is submitted twice. although the first request is cancelled by the browser but the server side does indeed process both requests.
How to replicate: click the submit button twice real quick and you can see the form being submitted twice.
The code we’re using:
<div class="container">
<div class="row" id="RowWithForm">
<div class="col">
<form id="form1" method="post" is="dmx-serverconnect-form" action="../dmxConnect/api/testdoubleclick.php">
<button class="btn px-5 btn-danger" id="btnWithSpan" dmx-bind:disabled="state.executing" type="submit">Test Doubleclick with span
<span class="spinner-border spinner-border-sm ml-2" role="status" dmx-show="state.executing">
</span>
</button>
</form>
</div>
</div>
</div>
please let us know if we’re doing something wrong here - or this is a bug!?