From 5c04a6ec4c0f87efe1068228243fbdf107b9018b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 18 May 2019 14:57:30 +0200 Subject: [PATCH] Fix bug where input elements got selected multiple times --- Views/FormView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Views/FormView.js b/Views/FormView.js index 3dcf2f7..9b51c9d 100644 --- a/Views/FormView.js +++ b/Views/FormView.js @@ -279,7 +279,7 @@ export class FormView { inputs = [].slice.call(form.getElementsByTagName('input')), buttons = form.getElementsByTagName('button'), canvas = form.getElementsByTagName('canvas'), - external = document.querySelectorAll('body:not(#' + this.id + ') [form=' + this.id + ']'), + external = document.querySelectorAll('form:not(#' + this.id + ') [form=' + this.id + ']'), special = form.querySelectorAll('[data-name]'), specialExt = document.querySelectorAll('form:not(#' + this.id + ') [data-form=' + this.id + '] [data-name]'), inputLength = inputs.length;