Skip to content

Commit

Permalink
Merge pull request #19460 from colemanw/afformFix
Browse files Browse the repository at this point in the history
Afform - Fix form submit button
  • Loading branch information
seamuslee001 authored Feb 1, 2021
2 parents 3bc0882 + 652d6ce commit 6fa44b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ext/afform/core/ang/af/afForm.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
data = {},
ctrl = this;

// This component has no template. It makes its controller available within it by adding it to the parent scope.
$scope.$parent[this.ctrl] = this;

this.$onInit = function() {
// This component has no template. It makes its controller available within it by adding it to the parent scope.
$scope.$parent[this.ctrl] = this;

$timeout(ctrl.loadData);
};

Expand Down

0 comments on commit 6fa44b7

Please sign in to comment.