Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/directives/formly-form.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function FormlyFormController(
function validateFormControl(formControl, promise) {
const validate = formControl.$validate
if (promise) {
promise.then(validate)
promise.then(() => validate.apply(formControl))
} else {
validate()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what about this line?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking that the problem is that the validate function isn't being called with the right this context. Honestly, I'd prefer the use of bind personally, but I don't care either way.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. LGTM

}
Expand Down