{"action":"created","issue":{"url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/138","labels_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/138/labels{/name}","comments_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/138/comments","events_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/138/events","html_url":"https://github.com/Bluefieldscom/intl-tel-input/issues/138","id":54540726,"number":138,"title":"Flag reverts to local country","user":{"login":"joshuawilson","id":1184371,"avatar_url":"https://avatars.githubusercontent.com/u/1184371?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuawilson","html_url":"https://github.com/joshuawilson","followers_url":"https://api.github.com/users/joshuawilson/followers","following_url":"https://api.github.com/users/joshuawilson/following{/other_user}","gists_url":"https://api.github.com/users/joshuawilson/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuawilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuawilson/subscriptions","organizations_url":"https://api.github.com/users/joshuawilson/orgs","repos_url":"https://api.github.com/users/joshuawilson/repos","events_url":"https://api.github.com/users/joshuawilson/events{/privacy}","received_events_url":"https://api.github.com/users/joshuawilson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-16T05:18:58Z","updated_at":"2015-01-16T05:42:58Z","closed_at":null,"body":"I have an sample app that is a basic contact form. I set up the intl-tel-input plugin and it works great until I go to edit the data I just added.\r\n\r\n1. I add a phone number for another country (say the UK) and the correct flag appears.\r\n2. I save the data.\r\n3. Then I pull up the data in an edit version of the form and the flag has changed to USA.\r\n\r\nIf I edit the phone number it immediately updates the flag to the correct matching one.\r\n\r\nAm I doing something wrong or is this an issue with the plugin?"},"comment":{"url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/comments/70210882","html_url":"https://github.com/Bluefieldscom/intl-tel-input/issues/138#issuecomment-70210882","issue_url":"https://api.github.com/repos/Bluefieldscom/intl-tel-input/issues/138","id":70210882,"user":{"login":"joshuawilson","id":1184371,"avatar_url":"https://avatars.githubusercontent.com/u/1184371?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuawilson","html_url":"https://github.com/joshuawilson","followers_url":"https://api.github.com/users/joshuawilson/followers","following_url":"https://api.github.com/users/joshuawilson/following{/other_user}","gists_url":"https://api.github.com/users/joshuawilson/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuawilson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuawilson/subscriptions","organizations_url":"https://api.github.com/users/joshuawilson/orgs","repos_url":"https://api.github.com/users/joshuawilson/repos","events_url":"https://api.github.com/users/joshuawilson/events{/privacy}","received_events_url":"https://api.github.com/users/joshuawilson/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T05:42:58Z","updated_at":"2015-01-16T05:42:58Z","body":"Thanks for the quick feedback. :)\r\n\r\nI tried moving the initialization around. \r\n\r\nIf I have the initialization **before** the data is populated then the USA flag is displayed.\r\nIf I move the initialization **after** the data is populated then the correct flag is displayed but then I checked the other \"contacts\" and they have USA numbers but they do not have the USA flag."}}