{"action":"created","issue":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3121","labels_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3121/labels{/name}","comments_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3121/comments","events_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3121/events","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/3121","id":109389003,"number":3121,"title":"dropdown restore defaults does not restore the default text when using element id","user":{"login":"kmd1970","id":5647963,"avatar_url":"https://avatars.githubusercontent.com/u/5647963?v=3","gravatar_id":"","url":"https://api.github.com/users/kmd1970","html_url":"https://github.com/kmd1970","followers_url":"https://api.github.com/users/kmd1970/followers","following_url":"https://api.github.com/users/kmd1970/following{/other_user}","gists_url":"https://api.github.com/users/kmd1970/gists{/gist_id}","starred_url":"https://api.github.com/users/kmd1970/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmd1970/subscriptions","organizations_url":"https://api.github.com/users/kmd1970/orgs","repos_url":"https://api.github.com/users/kmd1970/repos","events_url":"https://api.github.com/users/kmd1970/events{/privacy}","received_events_url":"https://api.github.com/users/kmd1970/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T21:27:49Z","updated_at":"2015-11-07T06:53:16Z","closed_at":null,"body":"When I use the element id to call 'restore defaults' the default value is not restored. Class name seems to working fine.  I am using 2.1.4\r\n\r\n```html\r\n<select class=\"ui dropdown\" id=\"drop\">\r\n  <option value=\"\">Gender</option>\r\n  <option value=\"1\">Male</option>\r\n  <option value=\"0\">Female</option>\r\n</select>\r\n\r\n<div class=\"ui button one\">Restore one</div>\r\n<div class=\"ui button two\">Restore two</div>\r\n```\r\n\r\n```javascript\r\n//works\r\n\r\n$('.ui.dropdown').dropdown();\r\n\r\n$('.button.one').on('click', function() {\r\n    $('.ui.dropdown').dropdown('restore defaults');  \r\n});\r\n\r\n//does not work\r\n\r\n$('.button.two').on('click', function() {\r\n    $('#drop').dropdown('restore defaults');  \r\n});\r\n```\r\nhttp://jsfiddle.net/kmd1970/7c654f6q/\r\n"},"comment":{"url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/comments/154641414","html_url":"https://github.com/Semantic-Org/Semantic-UI/issues/3121#issuecomment-154641414","issue_url":"https://api.github.com/repos/Semantic-Org/Semantic-UI/issues/3121","id":154641414,"user":{"login":"jlukic","id":23123,"avatar_url":"https://avatars.githubusercontent.com/u/23123?v=3","gravatar_id":"","url":"https://api.github.com/users/jlukic","html_url":"https://github.com/jlukic","followers_url":"https://api.github.com/users/jlukic/followers","following_url":"https://api.github.com/users/jlukic/following{/other_user}","gists_url":"https://api.github.com/users/jlukic/gists{/gist_id}","starred_url":"https://api.github.com/users/jlukic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlukic/subscriptions","organizations_url":"https://api.github.com/users/jlukic/orgs","repos_url":"https://api.github.com/users/jlukic/repos","events_url":"https://api.github.com/users/jlukic/events{/privacy}","received_events_url":"https://api.github.com/users/jlukic/received_events","type":"User","site_admin":false},"created_at":"2015-11-07T06:53:16Z","updated_at":"2015-11-07T06:53:16Z","body":"In the second case you are calling a dropdown function on the original input and not the dropdown."}}