{"action":"created","issue":{"url":"https://api.github.com/repos/TheSharpieOne/angular-input-match/issues/10","labels_url":"https://api.github.com/repos/TheSharpieOne/angular-input-match/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/TheSharpieOne/angular-input-match/issues/10/comments","events_url":"https://api.github.com/repos/TheSharpieOne/angular-input-match/issues/10/events","html_url":"https://github.com/TheSharpieOne/angular-input-match/issues/10","id":53278670,"number":10,"title":"empty, dirty fields don't match","user":{"login":"rienheuver","id":9960351,"avatar_url":"https://avatars.githubusercontent.com/u/9960351?v=3","gravatar_id":"","url":"https://api.github.com/users/rienheuver","html_url":"https://github.com/rienheuver","followers_url":"https://api.github.com/users/rienheuver/followers","following_url":"https://api.github.com/users/rienheuver/following{/other_user}","gists_url":"https://api.github.com/users/rienheuver/gists{/gist_id}","starred_url":"https://api.github.com/users/rienheuver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rienheuver/subscriptions","organizations_url":"https://api.github.com/users/rienheuver/orgs","repos_url":"https://api.github.com/users/rienheuver/repos","events_url":"https://api.github.com/users/rienheuver/events{/privacy}","received_events_url":"https://api.github.com/users/rienheuver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-02T21:19:05Z","updated_at":"2015-01-02T21:59:25Z","closed_at":null,"body":"Example fields:\r\n`<input ng-model=\"user.password\" type=\"password\">`\r\n`<input ng-model=\"user.checkpassword\" type=\"password\" match=\"user.password\">`\r\nIf I enter data in user.checkpassword and then remove it again (making it an invalid match for a small time), it will remain unmatched. The fields do not match any longer even though they are both empty."},"comment":{"url":"https://api.github.com/repos/TheSharpieOne/angular-input-match/issues/comments/68566499","html_url":"https://github.com/TheSharpieOne/angular-input-match/issues/10#issuecomment-68566499","issue_url":"https://api.github.com/repos/TheSharpieOne/angular-input-match/issues/10","id":68566499,"user":{"login":"TheSharpieOne","id":664714,"avatar_url":"https://avatars.githubusercontent.com/u/664714?v=3","gravatar_id":"","url":"https://api.github.com/users/TheSharpieOne","html_url":"https://github.com/TheSharpieOne","followers_url":"https://api.github.com/users/TheSharpieOne/followers","following_url":"https://api.github.com/users/TheSharpieOne/following{/other_user}","gists_url":"https://api.github.com/users/TheSharpieOne/gists{/gist_id}","starred_url":"https://api.github.com/users/TheSharpieOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheSharpieOne/subscriptions","organizations_url":"https://api.github.com/users/TheSharpieOne/orgs","repos_url":"https://api.github.com/users/TheSharpieOne/repos","events_url":"https://api.github.com/users/TheSharpieOne/events{/privacy}","received_events_url":"https://api.github.com/users/TheSharpieOne/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T21:59:25Z","updated_at":"2015-01-02T21:59:25Z","body":"In this case, it looks like you may have some other validation on the first field.  When that validation fails, it set the value to `undefined`, when the confirmation field is empty it is `\"\"` (empty string), they do not match with `===`.\r\n\r\nThis looks to relate to #5 "}}