{"action":"opened","issue":{"url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/328","repository_url":"https://api.github.com/repos/assisrafael/angular-input-masks","labels_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/328/labels{/name}","comments_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/328/comments","events_url":"https://api.github.com/repos/assisrafael/angular-input-masks/issues/328/events","html_url":"https://github.com/assisrafael/angular-input-masks/issues/328","id":295500633,"number":328,"title":"ui-br-cpf-mask sets model to undefined","user":{"login":"renanpvaz","id":14297772,"avatar_url":"https://avatars0.githubusercontent.com/u/14297772?v=4","gravatar_id":"","url":"https://api.github.com/users/renanpvaz","html_url":"https://github.com/renanpvaz","followers_url":"https://api.github.com/users/renanpvaz/followers","following_url":"https://api.github.com/users/renanpvaz/following{/other_user}","gists_url":"https://api.github.com/users/renanpvaz/gists{/gist_id}","starred_url":"https://api.github.com/users/renanpvaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renanpvaz/subscriptions","organizations_url":"https://api.github.com/users/renanpvaz/orgs","repos_url":"https://api.github.com/users/renanpvaz/repos","events_url":"https://api.github.com/users/renanpvaz/events{/privacy}","received_events_url":"https://api.github.com/users/renanpvaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-08T12:52:01Z","updated_at":"2018-02-08T12:52:01Z","closed_at":null,"author_association":"NONE","body":"I tested it and the other masks seem to work, but the CPF one has something wrong with it. I'm using the 2.6.0 version, which is the latest I found for **bower** (yes unfortunately I'm using it).\r\n\r\nThis is how I tried using it (the input is wrapped by a form inside a component's template):\r\n```\r\n<input\r\n  type=\"text\"\r\n  name=\"cpf\"\r\n  class=\"form-control\"\r\n  placeholder=\"Digite seu CPF *\"\r\n  ng-model=\"$ctrl.verification.cpf\"\r\n  ui-br-cpf-mask\r\n  required\r\n/>\r\n```\r\n\r\nI found, however, a small workaround that has weird behavior sometimes:\r\n```\r\n<input\r\n  type=\"text\"\r\n  name=\"cpf\"\r\n  class=\"form-control\"\r\n  placeholder=\"Digite seu CPF *\"\r\n  ng-model=\"$ctrl.verification.cpf\"\r\n  ui-br-cpfcnpj-mask\r\n  maxlength=\"14\"\r\n  required\r\n/>\r\n```\r\n\r\nIf this has been fixed already, publishing the updated version to bower would really help me out! "}}
{"actor":{"display_login":"renanpvaz"}}