{"action":"created","issue":{"url":"https://api.github.com/repos/lordfriend/nya-bootstrap-select/issues/140","repository_url":"https://api.github.com/repos/lordfriend/nya-bootstrap-select","labels_url":"https://api.github.com/repos/lordfriend/nya-bootstrap-select/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/lordfriend/nya-bootstrap-select/issues/140/comments","events_url":"https://api.github.com/repos/lordfriend/nya-bootstrap-select/issues/140/events","html_url":"https://github.com/lordfriend/nya-bootstrap-select/issues/140","id":168643943,"number":140,"title":"form-control class added to dropdown toggle button","user":{"login":"ena1106","id":13622606,"avatar_url":"https://avatars.githubusercontent.com/u/13622606?v=3","gravatar_id":"","url":"https://api.github.com/users/ena1106","html_url":"https://github.com/ena1106","followers_url":"https://api.github.com/users/ena1106/followers","following_url":"https://api.github.com/users/ena1106/following{/other_user}","gists_url":"https://api.github.com/users/ena1106/gists{/gist_id}","starred_url":"https://api.github.com/users/ena1106/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ena1106/subscriptions","organizations_url":"https://api.github.com/users/ena1106/orgs","repos_url":"https://api.github.com/users/ena1106/repos","events_url":"https://api.github.com/users/ena1106/events{/privacy}","received_events_url":"https://api.github.com/users/ena1106/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-01T13:19:45Z","updated_at":"2016-08-03T10:13:15Z","closed_at":"2016-08-03T09:15:47Z","body":"In the original bs-select library I noticed that the form-control class is not applied to the generated dropdown toggle button. It is left in the outer div only.\r\n```\r\n<div class=\"btn-group bootstrap-select bs-select form-control\">\r\n    <button type=\"button\" class=\"btn dropdown-toggle btn-default\" data-toggle=\"dropdown\" title=\"Select CFU\" aria-expanded=\"false\">\r\n```\r\nUsing this library, if the form-control class is applied to the <ul> element it is automatically applied also to the dropdown toggle button. I found the code for this here:\r\n```\r\nif(className === 'form-control') {\r\n       dropdownToggle.addClass(className);\r\n} \r\n```\r\nCan you explain why?\r\nIn my project this causes me issues, since it overrides the background of the toggle button. But I guess you had a good reason for this choice."},"comment":{"url":"https://api.github.com/repos/lordfriend/nya-bootstrap-select/issues/comments/237198579","html_url":"https://github.com/lordfriend/nya-bootstrap-select/issues/140#issuecomment-237198579","issue_url":"https://api.github.com/repos/lordfriend/nya-bootstrap-select/issues/140","id":237198579,"user":{"login":"ena1106","id":13622606,"avatar_url":"https://avatars.githubusercontent.com/u/13622606?v=3","gravatar_id":"","url":"https://api.github.com/users/ena1106","html_url":"https://github.com/ena1106","followers_url":"https://api.github.com/users/ena1106/followers","following_url":"https://api.github.com/users/ena1106/following{/other_user}","gists_url":"https://api.github.com/users/ena1106/gists{/gist_id}","starred_url":"https://api.github.com/users/ena1106/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ena1106/subscriptions","organizations_url":"https://api.github.com/users/ena1106/orgs","repos_url":"https://api.github.com/users/ena1106/repos","events_url":"https://api.github.com/users/ena1106/events{/privacy}","received_events_url":"https://api.github.com/users/ena1106/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T10:13:15Z","updated_at":"2016-08-03T10:13:15Z","body":"Thank you!"}}
{"actor":{"display_login":"ena1106"}}