Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix(aurelia-form): only validate known fields
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Feb 23, 2017
1 parent e0970fb commit 7ff3c77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/component/aurelia-form.js
Expand Up @@ -90,7 +90,9 @@ export class AureliaForm {
}

validate(property) {
return this.validationController.validate({object: this.entity, propertyName: property});
if (this.mapped[property]) {
return this.validationController.validate({object: this.entity, propertyName: property});
}
}

emit(event, data = {}) {
Expand Down

0 comments on commit 7ff3c77

Please sign in to comment.