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

Commit

Permalink
feat(aurelia-form): allow disabling form validation
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Feb 21, 2017
1 parent ac5eaae commit 601d9cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/component/aurelia-form.js
Expand Up @@ -16,6 +16,8 @@ export class AureliaForm {
@bindable validationController;
@bindable validated = true;
@bindable entity;
@bindable buttonOptions;
Expand Down Expand Up @@ -48,7 +50,7 @@ export class AureliaForm {
}
submit() {
if (!this.validationController) {
if (!this.validationController || !this.validated) {
return;
}
Expand All @@ -68,7 +70,7 @@ export class AureliaForm {
changed(trigger, event) {
let controller = this.validationController;

if (!controller) {
if (!controller || !this.validated) {
return true;
}

Expand Down

0 comments on commit 601d9cb

Please sign in to comment.