public/section.js
// Specify label to clear only errors of that group. Use no label to clear everything
Specify label to clear only errors of that group. Use no label to clear everything
Specify label to clear only errors of that group . Use no label to clear everything
clearErrors(index = -1) {
        if (index >= 0) {
            this.fields[index].errors = [];
        } else {
            this.errors = [];
            this.fields.forEach(f => f.errors = []);
        }
        this.displayErrors();
    }
clearErrors ( index = - 1 ) { if ( index >= 0 ) { this . fields [ index ] . errors = [ ] ; } else { this . errors = [ ] ; this . fields . forEach ( f => f . errors = [ ] ) ; } this . displayErrors ( ) ; }
Specify label to clear only errors of that group.
Specify label to clear only errors of that group .