{"action":"created","issue":{"url":"https://api.github.com/repos/mareczek/international-phone-number/issues/39","labels_url":"https://api.github.com/repos/mareczek/international-phone-number/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/mareczek/international-phone-number/issues/39/comments","events_url":"https://api.github.com/repos/mareczek/international-phone-number/issues/39/events","html_url":"https://github.com/mareczek/international-phone-number/issues/39","id":70792419,"number":39,"title":"More on ng-required and form.$invalid","user":{"login":"LiamK","id":360435,"avatar_url":"https://avatars.githubusercontent.com/u/360435?v=3","gravatar_id":"","url":"https://api.github.com/users/LiamK","html_url":"https://github.com/LiamK","followers_url":"https://api.github.com/users/LiamK/followers","following_url":"https://api.github.com/users/LiamK/following{/other_user}","gists_url":"https://api.github.com/users/LiamK/gists{/gist_id}","starred_url":"https://api.github.com/users/LiamK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LiamK/subscriptions","organizations_url":"https://api.github.com/users/LiamK/orgs","repos_url":"https://api.github.com/users/LiamK/repos","events_url":"https://api.github.com/users/LiamK/events{/privacy}","received_events_url":"https://api.github.com/users/LiamK/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-24T20:58:33Z","updated_at":"2015-07-28T16:29:17Z","closed_at":"2015-07-14T13:37:30Z","body":"Mareczek,\r\n\r\nPosted this but you may not have seen it.  Will you be able to look into this?  \r\n\r\nI have done some more testing (of the \"required\" behavior) and now it's behaving differently, but not quite right, still. There seems to be some kind of interaction with other input elements.\r\n\r\nThere are 3 inputs, 1 textarea and 1 international-phone-number element.\r\n\r\nThe elements that are required (or ng-required) no longer seem to affect the value of form.$invalid.\r\n\r\nform.fullname.$invalid can be true, but form.$invalid is still false. I think if a form element is invalid the form should also be invalid itself.\r\n\r\nFor that reason, the blank form starts as valid, since the required fields are ignored.\r\n\r\nA focus + unfocus on the international-phone-number element makes form.$invalid = true. It shouldn't!\r\n\r\nIf required fields are filled in and I focus + backspace on the international-phone-number, then form.$invalid = false, but it should be true.\r\n\r\nCould you please take another look at this? Really appreciate your help."},"comment":{"url":"https://api.github.com/repos/mareczek/international-phone-number/issues/comments/125671630","html_url":"https://github.com/mareczek/international-phone-number/issues/39#issuecomment-125671630","issue_url":"https://api.github.com/repos/mareczek/international-phone-number/issues/39","id":125671630,"user":{"login":"skfd","id":159640,"avatar_url":"https://avatars.githubusercontent.com/u/159640?v=3","gravatar_id":"","url":"https://api.github.com/users/skfd","html_url":"https://github.com/skfd","followers_url":"https://api.github.com/users/skfd/followers","following_url":"https://api.github.com/users/skfd/following{/other_user}","gists_url":"https://api.github.com/users/skfd/gists{/gist_id}","starred_url":"https://api.github.com/users/skfd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skfd/subscriptions","organizations_url":"https://api.github.com/users/skfd/orgs","repos_url":"https://api.github.com/users/skfd/repos","events_url":"https://api.github.com/users/skfd/events{/privacy}","received_events_url":"https://api.github.com/users/skfd/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T16:29:17Z","updated_at":"2015-07-28T16:29:17Z","body":"I'm getting this on `v0.0.8`. :("}}