mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-02-02 19:38:41 +00:00
Fix duplicated form fields due to bad selector
This commit is contained in:
parent
c7c0a7f5dc
commit
6321b9e02c
|
|
@ -197,9 +197,9 @@ export class FormView {
|
|||
inputs = [].slice.call(form.getElementsByTagName('input')),
|
||||
buttons = form.getElementsByTagName('button'),
|
||||
canvas = form.getElementsByTagName('canvas'),
|
||||
external = document.querySelectorAll('[form=' + this.id + ']'),
|
||||
external = document.querySelectorAll('form:not(#' + this.id + ') [form=' + this.id + ']'),
|
||||
special = form.querySelectorAll('[data-name]'),
|
||||
specialExt = document.querySelectorAll('[data-form=' + this.id + '] [data-name]'),
|
||||
specialExt = document.querySelectorAll('form:not(#' + this.id + ') [data-form=' + this.id + '] [data-name]'),
|
||||
inputLength = inputs.length;
|
||||
|
||||
// todo: handle trigger element. check which element triggered the submit and pass it's name+value
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user