Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit 42b47c6

Browse files
RybbowKent C. Dodds
authored and
Kent C. Dodds
committedJan 20, 2017
fix(FormlyFormController): validateOnModelChange fire with promise change (#728)
Fixes validate being called with undefined this variable scope. Closes #523
1 parent fc45fb3 commit 42b47c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/directives/formly-form.controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function FormlyFormController(
3030
function validateFormControl(formControl, promise) {
3131
const validate = formControl.$validate
3232
if (promise) {
33-
promise.then(validate)
33+
promise.then(() => validate.apply(formControl))
3434
} else {
3535
validate()
3636
}

0 commit comments

Comments
 (0)