{"action":"created","issue":{"url":"https://api.github.com/repos/jackocnr/intl-tel-input/issues/403","repository_url":"https://api.github.com/repos/jackocnr/intl-tel-input","labels_url":"https://api.github.com/repos/jackocnr/intl-tel-input/issues/403/labels{/name}","comments_url":"https://api.github.com/repos/jackocnr/intl-tel-input/issues/403/comments","events_url":"https://api.github.com/repos/jackocnr/intl-tel-input/issues/403/events","html_url":"https://github.com/jackocnr/intl-tel-input/issues/403","id":149175332,"number":403,"title":"setNumber includes country code even if separateDialCode enabled","user":{"login":"aitormagan","id":2526562,"avatar_url":"https://avatars.githubusercontent.com/u/2526562?v=3","gravatar_id":"","url":"https://api.github.com/users/aitormagan","html_url":"https://github.com/aitormagan","followers_url":"https://api.github.com/users/aitormagan/followers","following_url":"https://api.github.com/users/aitormagan/following{/other_user}","gists_url":"https://api.github.com/users/aitormagan/gists{/gist_id}","starred_url":"https://api.github.com/users/aitormagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aitormagan/subscriptions","organizations_url":"https://api.github.com/users/aitormagan/orgs","repos_url":"https://api.github.com/users/aitormagan/repos","events_url":"https://api.github.com/users/aitormagan/events{/privacy}","received_events_url":"https://api.github.com/users/aitormagan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-18T14:56:49Z","updated_at":"2016-04-19T07:46:19Z","closed_at":"2016-04-19T07:46:19Z","body":"`setNumber` is not working properly when `separateDialCode` is enabled.\r\n\r\n### Steps to reproduce\r\n1.  Enable `separateDialCode`\r\n2.  Use `setNumber` to set a number (e.g. `+34600000000`)\r\n3.  The country code will appear in both the input and next to the flag. As a consequence, the final number is not valid as the country code is repeated. \r\n\r\n### Expected behaviour\r\nThe number should only appear next to the flag.\r\n\r\n### Actual behaviour\r\nThe number appears next to the flag and in the input.\r\n\r\n### Initialisation options\r\nseparateDialCode: true\r\nutilsScript: /path/to/utils.js\r\n\r\nBTW: I think It will be worth hiding the country code when using `setNumber` even if `separateDialCode` is disabled. Otherwise, the user get the same information twice (the flag and the country code in the input)."},"comment":{"url":"https://api.github.com/repos/jackocnr/intl-tel-input/issues/comments/211779581","html_url":"https://github.com/jackocnr/intl-tel-input/issues/403#issuecomment-211779581","issue_url":"https://api.github.com/repos/jackocnr/intl-tel-input/issues/403","id":211779581,"user":{"login":"aitormagan","id":2526562,"avatar_url":"https://avatars.githubusercontent.com/u/2526562?v=3","gravatar_id":"","url":"https://api.github.com/users/aitormagan","html_url":"https://github.com/aitormagan","followers_url":"https://api.github.com/users/aitormagan/followers","following_url":"https://api.github.com/users/aitormagan/following{/other_user}","gists_url":"https://api.github.com/users/aitormagan/gists{/gist_id}","starred_url":"https://api.github.com/users/aitormagan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aitormagan/subscriptions","organizations_url":"https://api.github.com/users/aitormagan/orgs","repos_url":"https://api.github.com/users/aitormagan/repos","events_url":"https://api.github.com/users/aitormagan/events{/privacy}","received_events_url":"https://api.github.com/users/aitormagan/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T07:46:19Z","updated_at":"2016-04-19T07:46:19Z","body":"You are right! The function is working perfectly! It is a problem with the AngularJS library that I have used to integrate this awesome library in my project! I am sorry! Thank you so much! ;)"}}