From 727fee799af92ca9b1c1ae0459990daabfee1700 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 27 Oct 2018 20:40:25 +0200 Subject: [PATCH] pass button value in forms --- Views/FormView.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Views/FormView.js b/Views/FormView.js index 877c830..e6acd2a 100644 --- a/Views/FormView.js +++ b/Views/FormView.js @@ -153,6 +153,7 @@ const selects = form.getElementsByTagName('select'), textareas = form.getElementsByTagName('textarea'), inputs = [].slice.call(form.getElementsByTagName('input')), + buttons = form.getElementsByTagName('button'), canvas = form.getElementsByTagName('canvas'), external = document.querySelectorAll('[form=' + this.id + ']'), inputLength = inputs.length; @@ -169,6 +170,7 @@ Array.prototype.slice.call(inputs).concat( Array.prototype.slice.call(selects), Array.prototype.slice.call(textareas), + Array.prototype.slice.call(buttons), Array.prototype.slice.call(external) ) );