{"action":"created","issue":{"url":"https://api.github.com/repos/select2/select2/issues/4742","repository_url":"https://api.github.com/repos/select2/select2","labels_url":"https://api.github.com/repos/select2/select2/issues/4742/labels{/name}","comments_url":"https://api.github.com/repos/select2/select2/issues/4742/comments","events_url":"https://api.github.com/repos/select2/select2/issues/4742/events","html_url":"https://github.com/select2/select2/issues/4742","id":199637131,"number":4742,"title":"Empty remove box added on first select in multiple selection","user":{"login":"kayran","id":474481,"avatar_url":"https://avatars3.githubusercontent.com/u/474481?v=3","gravatar_id":"","url":"https://api.github.com/users/kayran","html_url":"https://github.com/kayran","followers_url":"https://api.github.com/users/kayran/followers","following_url":"https://api.github.com/users/kayran/following{/other_user}","gists_url":"https://api.github.com/users/kayran/gists{/gist_id}","starred_url":"https://api.github.com/users/kayran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayran/subscriptions","organizations_url":"https://api.github.com/users/kayran/orgs","repos_url":"https://api.github.com/users/kayran/repos","events_url":"https://api.github.com/users/kayran/events{/privacy}","received_events_url":"https://api.github.com/users/kayran/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-09T19:15:03Z","updated_at":"2017-03-20T22:49:30Z","closed_at":null,"body":"## Prerequisites\r\n\r\n- [x] I have searched for similar issues in both open and closed tickets and cannot find a duplicate\r\n- [x] The issue still exists against the latest `master` branch of Select2\r\n- [ ] This is not a usage question (Those should be directed to the [community](https://select2.github.io/community.html))\r\n- [ ] I have attempted to find the simplest possible steps to reproduce the issue\r\n- [ ] I have included a failing test as a pull request (Optional)\r\n\r\n## Steps to reproduce the issue\r\n\r\n1.Goto http://jsfiddle.net/k81hwwdb/\r\n\r\n## Expected behavior and actual behavior\r\nI expected on first selection one remove box created with the tag selected\r\n\r\nWhat happens:\r\nSelect anything from the dropdown\r\nOn the first selection empty remove box will be included\r\n\r\n## Environment\r\n\r\nBrowsers\r\n\r\n- [x] Google Chrome\r\n- [x] Mozilla Firefox\r\n- [ ] Internet Explorer\r\n- [ ] Edge\r\n\r\nOperating System\r\n\r\n- [x] Windows\r\n- [ ] Mac OS X\r\n- [x] Linux\r\n- [ ] Mobile\r\n\r\nLibraries\r\n\r\n- jQuery version: 2.2.3\r\n- Select2 version: 4.0.3 full\r\n\r\n## Isolating the problem\r\n\r\n- [ ] This bug happens [on the examples page](https://select2.github.io/examples.html)\r\n- [x] The bug happens consistently across all tested browsers\r\n- [x] This bug happens when using Select2 without other pluigns\r\n- [x] I can reproduce this bug in [a jsfiddle](http://jsfiddle.net/k81hwwdb/)\r\n\r\n## Extra information\r\n\r\nThis issue was reported in https://github.com/select2/select2/issues/4657 and marked as solved, but was not solved. \r\n\r\nI debugged the select2 code and find that the extra tags was included before the update event and after the select2:select event. temporarily i solved the problem verifying if some of the new tags is empty and ignore it."},"comment":{"url":"https://api.github.com/repos/select2/select2/issues/comments/287922451","html_url":"https://github.com/select2/select2/issues/4742#issuecomment-287922451","issue_url":"https://api.github.com/repos/select2/select2/issues/4742","id":287922451,"user":{"login":"pySilver","id":1113925,"avatar_url":"https://avatars2.githubusercontent.com/u/1113925?v=3","gravatar_id":"","url":"https://api.github.com/users/pySilver","html_url":"https://github.com/pySilver","followers_url":"https://api.github.com/users/pySilver/followers","following_url":"https://api.github.com/users/pySilver/following{/other_user}","gists_url":"https://api.github.com/users/pySilver/gists{/gist_id}","starred_url":"https://api.github.com/users/pySilver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pySilver/subscriptions","organizations_url":"https://api.github.com/users/pySilver/orgs","repos_url":"https://api.github.com/users/pySilver/repos","events_url":"https://api.github.com/users/pySilver/events{/privacy}","received_events_url":"https://api.github.com/users/pySilver/received_events","type":"User","site_admin":false},"created_at":"2017-03-20T22:49:30Z","updated_at":"2017-03-20T22:49:30Z","body":"any workaround?"}}
{"actor":{"display_login":"pySilver"}}