the trigger element has no special meaning for the backend, only the data submitted!

This commit is contained in:
Dennis Eichhorn 2019-12-29 23:33:12 +01:00
parent 31dc73929f
commit 6e2abf7507

View File

@ -305,11 +305,6 @@ export class FormView {
inputLength = inputs.length,
externalLength = external.length;
// todo: handle trigger element. check which element triggered the submit and pass it's name+value
// the reason for this is, there may be multiple buttons in a form which trigger a send
// sometimes even a checkbox or drop down could trigger a send
// Maybe it makes sense to do this however at a different place e.g. the actual data submit
for (let i = 0; i < inputLength; ++i) {
if ((inputs[i].type === 'checkbox' || inputs[i].type === 'radio') && !inputs[i].checked) {
delete inputs[i];