Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build/media_source/system/js/fields/validate.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ class JFormValidator {
const invalid = [];

// Validate form fields
const fields = [].slice.call(form.querySelectorAll('input, textarea, select, button, fieldset'));
const fields = [].slice.call(form.elements);
fields.forEach((field) => {
if (this.validate(field) === false) {
valid = false;
Expand Down Expand Up @@ -284,7 +284,7 @@ class JFormValidator {

attachToForm(form) {
const inputFields = [];
const elements = [].slice.call(form.querySelectorAll('input, textarea, select, button, fieldset'));
const elements = [].slice.call(form.elements);

// Iterate through the form object and attach the validate method to all input fields.
elements.forEach((element) => {
Expand Down