Query relative to the view element.
This commit is contained in:
parent
9a2c7257d7
commit
0d256dbaf8
@ -433,7 +433,7 @@
|
|||||||
* (Event) ev - the submit event.
|
* (Event) ev - the submit event.
|
||||||
*/
|
*/
|
||||||
if (ev && ev.preventDefault) { ev.preventDefault(); }
|
if (ev && ev.preventDefault) { ev.preventDefault(); }
|
||||||
var has_empty_inputs = _.reduce(document.querySelectorAll('input.required'),
|
var has_empty_inputs = _.reduce(this.el.querySelectorAll('input.required'),
|
||||||
function (result, input) {
|
function (result, input) {
|
||||||
if (input.value === '') {
|
if (input.value === '') {
|
||||||
input.classList.add('error');
|
input.classList.add('error');
|
||||||
|
Loading…
Reference in New Issue
Block a user