{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/2250","repository_url":"https://api.github.com/repos/select2/select2","labels_url":"https://api.github.com/repos/select2/select2/issues/2250/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/2250/comments","events_url":"https://api.github.com/repos/select2/select2/issues/2250/events","html_url":"https://github.com/select2/select2/issues/2250","id":31038405,"node_id":"MDU6SXNzdWUzMTAzODQwNQ==","number":2250,"title":"Ability to reload a select2 dropdown","user":{"login":"KieranP","id":16620,"node_id":"MDQ6VXNlcjE2NjIw","avatar_url":"https://avatars3.githubusercontent.com/u/16620?v=4","gravatar_id":"","url":"https://api.github.com/users/KieranP","html_url":"https://github.com/KieranP","followers_url":"https://api.github.com/users/KieranP/followers","following_url":"https://api.github.com/users/KieranP/following{/other_user}","gists_url":"https://api.github.com/users/KieranP/gists{/gist_id}","starred_url":"https://api.github.com/users/KieranP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KieranP/subscriptions","organizations_url":"https://api.github.com/users/KieranP/orgs","repos_url":"https://api.github.com/users/KieranP/repos","events_url":"https://api.github.com/users/KieranP/events{/privacy}","received_events_url":"https://api.github.com/users/KieranP/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2014-04-08T02:22:03Z","updated_at":"2018-06-27T11:11:26Z","closed_at":"2016-03-18T23:39:44Z","author_association":"NONE","body":"Use case:\n\n``` javascript\n$('#country').change(function() {\n  $('#region').replace(....); // updates regions based on country\n  $('#region').select2('reload');\n});\n```\n\nCurrently, I need to `select('destroy')` and then reinitialise the selector with the same options, which works, but this gets a bit messy (having two calls all around the place).\n\n(ideally it would detect and reload changes automatically, but the above would work find instead)\n"},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/400635640","html_url":"https://github.com/select2/select2/issues/2250#issuecomment-400635640","issue_url":"https://api.github.com/repos/select2/select2/issues/2250","id":400635640,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDYzNTY0MA==","user":{"login":"3lue","id":4589085,"node_id":"MDQ6VXNlcjQ1ODkwODU=","avatar_url":"https://avatars3.githubusercontent.com/u/4589085?v=4","gravatar_id":"","url":"https://api.github.com/users/3lue","html_url":"https://github.com/3lue","followers_url":"https://api.github.com/users/3lue/followers","following_url":"https://api.github.com/users/3lue/following{/other_user}","gists_url":"https://api.github.com/users/3lue/gists{/gist_id}","starred_url":"https://api.github.com/users/3lue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/3lue/subscriptions","organizations_url":"https://api.github.com/users/3lue/orgs","repos_url":"https://api.github.com/users/3lue/repos","events_url":"https://api.github.com/users/3lue/events{/privacy}","received_events_url":"https://api.github.com/users/3lue/received_events","type":"User","site_admin":false},"created_at":"2018-06-27T11:11:26Z","updated_at":"2018-06-27T11:11:26Z","author_association":"NONE","body":"Any update? I'm still experiencing this issue and need the fix."}}
{"actor":{"display_login":"3lue"}}