{"action":"created","issue":{"url":"https://api.github.com/repos/bevacqua/dragula/issues/260","labels_url":"https://api.github.com/repos/bevacqua/dragula/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/bevacqua/dragula/issues/260/comments","events_url":"https://api.github.com/repos/bevacqua/dragula/issues/260/events","html_url":"https://github.com/bevacqua/dragula/issues/260","id":117214570,"number":260,"title":"Select element value not maintained when dragging","user":{"login":"MarcosLopezC","id":6166464,"avatar_url":"https://avatars.githubusercontent.com/u/6166464?v=3","gravatar_id":"","url":"https://api.github.com/users/MarcosLopezC","html_url":"https://github.com/MarcosLopezC","followers_url":"https://api.github.com/users/MarcosLopezC/followers","following_url":"https://api.github.com/users/MarcosLopezC/following{/other_user}","gists_url":"https://api.github.com/users/MarcosLopezC/gists{/gist_id}","starred_url":"https://api.github.com/users/MarcosLopezC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarcosLopezC/subscriptions","organizations_url":"https://api.github.com/users/MarcosLopezC/orgs","repos_url":"https://api.github.com/users/MarcosLopezC/repos","events_url":"https://api.github.com/users/MarcosLopezC/events{/privacy}","received_events_url":"https://api.github.com/users/MarcosLopezC/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bevacqua/dragula/labels/support","name":"support","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-16T20:50:23Z","updated_at":"2015-11-17T15:33:55Z","closed_at":"2015-11-17T15:33:40Z","body":"When dragging an item containing a `<select>` element, the `<option>` selected in the original item is not the same as the `<option>` selected in the mirror element.\r\n\r\nHere is a short example:\r\n```html\r\n<!DOCTYPE html>\r\n<html>\r\n\t<head>\r\n\t\t<meta charset=\"utf-8\">\r\n\t\t<title>Dragula bug</title>\r\n\t\t<link rel=\"stylesheet\" href=\"dragula.css\">\r\n\t\t<style>\r\n\t\t\tdiv.container {\r\n\t\t\t\tmargin: 20px auto;\r\n\t\t\t\tpadding: 20px;\r\n\t\t\t\twidth: 400px;\r\n\t\t\t\theight:160px;\r\n\t\t\t\tbackground-color: #600;\r\n\t\t\t}\r\n\t\t\tdiv.item {\r\n\t\t\t\tpadding: 20px;\r\n\t\t\t\tbackground-color: #fff;\r\n\t\t\t}\r\n\t\t</style>\r\n\t</head>\r\n\t<body>\r\n\t\t<div id=\"container1\" class=\"container\">\r\n\t\t\t<div class=\"item\">\r\n\t\t\t\t<select>\r\n\t\t\t\t\t<option>INCORRECT</option>\r\n\t\t\t\t\t<option>Correct</option>\r\n\t\t\t\t</select>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<div id=\"container2\" class=\"container\">\r\n\t\t</div>\r\n\t\t<script src=\"dragula.min.js\"></script>\r\n\t\t<script>\r\n\t\t\tdragula([\r\n\t\t\t\tdocument.getElementById(\"container1\"),\r\n\t\t\t\tdocument.getElementById(\"container2\")\r\n\t\t\t]);\r\n\t\t</script>\r\n\t</body>\r\n</html>\r\n```\r\n\r\n1. Select the _correct_ option in the item.\r\n2. Drag the item from container1 into container2.\r\n\r\nNote that as you drag the item the _incorrect_ option is being displayed on the mirror element.\r\n\r\nI've tested this in Firefox and Chrome. "},"comment":{"url":"https://api.github.com/repos/bevacqua/dragula/issues/comments/157404930","html_url":"https://github.com/bevacqua/dragula/issues/260#issuecomment-157404930","issue_url":"https://api.github.com/repos/bevacqua/dragula/issues/260","id":157404930,"user":{"login":"bevacqua","id":934293,"avatar_url":"https://avatars.githubusercontent.com/u/934293?v=3","gravatar_id":"","url":"https://api.github.com/users/bevacqua","html_url":"https://github.com/bevacqua","followers_url":"https://api.github.com/users/bevacqua/followers","following_url":"https://api.github.com/users/bevacqua/following{/other_user}","gists_url":"https://api.github.com/users/bevacqua/gists{/gist_id}","starred_url":"https://api.github.com/users/bevacqua/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bevacqua/subscriptions","organizations_url":"https://api.github.com/users/bevacqua/orgs","repos_url":"https://api.github.com/users/bevacqua/repos","events_url":"https://api.github.com/users/bevacqua/events{/privacy}","received_events_url":"https://api.github.com/users/bevacqua/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T15:33:55Z","updated_at":"2015-11-17T15:33:55Z","body":"See #248"}}