public/section.js
// returns true if each field has data, but there are no errors.
returns true if each field has data, but there are no errors.
returns true if each field has data but there are no errors .
valid() {
        if (this.fields.some(field => !field.valid())) return false;
        if (this.errors.some(err => err.level > 2)) return false;
        return true;
    }
valid ( ) { if ( this . fields . some ( field => ! field . valid ( ) ) ) return false ; if ( this . errors . some ( err => err . level > 2 ) ) return false ; return true ; }
returns true if each field has data, but there are no errors.
returns true if each field has data but there are no errors .