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

Cannot read property '$setTouched' of undefined #99

Open
GabrielMSharp opened this issue Jun 7, 2016 · 1 comment
Open

Cannot read property '$setTouched' of undefined #99

GabrielMSharp opened this issue Jun 7, 2016 · 1 comment

Comments

@GabrielMSharp
Copy link

GabrielMSharp commented Jun 7, 2016

The line:
$scope.fc.$setTouched();
returns setTouched undefined when an item type of 'multiCheckbox' is changed.

This seems to be because 'fc' on the scope is undefined. I believe SC is the formcontrol, but can't see where this is set or unset.

@Doug-Shannon
Copy link

I re-wrote that control to add a few extra pieces I needed and noticed that fc is now an array and I had to reference one of the objects in the array.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants