{"action":"created","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/19569","repository_url":"https://api.github.com/repos/twbs/bootstrap","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/19569/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/19569/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/19569/events","html_url":"https://github.com/twbs/bootstrap/issues/19569","id":142057269,"number":19569,"title":"Navbar not collapsed by default","user":{"login":"stickon1","id":17947733,"avatar_url":"https://avatars.githubusercontent.com/u/17947733?v=3","gravatar_id":"","url":"https://api.github.com/users/stickon1","html_url":"https://github.com/stickon1","followers_url":"https://api.github.com/users/stickon1/followers","following_url":"https://api.github.com/users/stickon1/following{/other_user}","gists_url":"https://api.github.com/users/stickon1/gists{/gist_id}","starred_url":"https://api.github.com/users/stickon1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stickon1/subscriptions","organizations_url":"https://api.github.com/users/stickon1/orgs","repos_url":"https://api.github.com/users/stickon1/repos","events_url":"https://api.github.com/users/stickon1/events{/privacy}","received_events_url":"https://api.github.com/users/stickon1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-19T12:28:00Z","updated_at":"2016-03-19T12:43:54Z","closed_at":null,"body":"Hi, I am pretty new to web coding so thank you very much for help. My issue is that when site is displayed on small screens, the menu is by default expanded and it takes two clicks to collapse it back. I wanted the site on mobile devices to behave so at the beginning  the menu is collapsed.\r\nThank you for your help.\r\nSee code below for details.\r\n\r\n\t<div class=\"row h_menu\">\r\n\t\t<nav class=\"navbar navbar-default navbar-left\" role=\"navigation\">\r\n\t\t    <!-- Brand and toggle get grouped for better mobile display -->\r\n\t\t    <div class=\"navbar-header\">\r\n\t\t      <button type=\"button\" class=\"navbar-toggle collapsed\" data-toggle=\"collapse\" data-target=\"#bs-example-navbar-collapse-1\">\r\n\t\t        <span class=\"sr-only\">Toggle navigation</span>\r\n\t\t        <span class=\"icon-bar\"></span>\r\n\t\t        <span class=\"icon-bar\"></span>\r\n\t\t        <span class=\"icon-bar\"></span>\r\n\t\t      </button>\r\n\t\t    </div>\r\n\t\t    <!-- Collect the nav links, forms, and other content for toggling -->\r\n\t\t    <div class=\"nav\" id=\"bs-example-navbar-collapse-1\">\r\n\t\t      <ul class=\"active\">\r\n\t\t        <li class=\"active\"><a href=\"index.html\">O ordinaci</a></li>\r\n\t\t        <li class=\"tutorials\">\r\n\t\t\t\t<a class=\"tutorials\" href=\"#\">Léka&#345i</a>\r\n\t\t\t\t<ul>\r\n\t\t\t\t\t<li><a href=\"klein.html\">MUDr. Tibor Klein</a></li>\r\n\t\t        \t\t<li><a href=\"svobodova.html\">MUDr. Irena Svobodová</a></li>\r\n\t\t\t\t\t<li><a href=\"kubus.html\">MUDr. Petr Kubuš</a></li>\r\n\t\t       \t\t\t<li><a href=\"tomek.html\">MUDr. Viktor Tomek</a></li>\r\n\t\t\t\t</ul>\r\n\t\t        <li class=\"contact\"><a href=\"galerie.html\">Galerie</a></li>\r\n\t\t        <li class=\"contact\"><a href=\"contact.html\">Kontakty</a></li>\r\n\t\t      </ul>\r\n\t\t    </div><!-- /.navbar-collapse -->\r\n\t\t    <!-- start soc_icons -->\r\n\t\t</nav>\r\n\t</div>"},"comment":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/comments/198695423","html_url":"https://github.com/twbs/bootstrap/issues/19569#issuecomment-198695423","issue_url":"https://api.github.com/repos/twbs/bootstrap/issues/19569","id":198695423,"user":{"login":"kubacode","id":4929328,"avatar_url":"https://avatars.githubusercontent.com/u/4929328?v=3","gravatar_id":"","url":"https://api.github.com/users/kubacode","html_url":"https://github.com/kubacode","followers_url":"https://api.github.com/users/kubacode/followers","following_url":"https://api.github.com/users/kubacode/following{/other_user}","gists_url":"https://api.github.com/users/kubacode/gists{/gist_id}","starred_url":"https://api.github.com/users/kubacode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubacode/subscriptions","organizations_url":"https://api.github.com/users/kubacode/orgs","repos_url":"https://api.github.com/users/kubacode/repos","events_url":"https://api.github.com/users/kubacode/events{/privacy}","received_events_url":"https://api.github.com/users/kubacode/received_events","type":"User","site_admin":false},"created_at":"2016-03-19T12:43:54Z","updated_at":"2016-03-19T12:43:54Z","body":"There are a number of issues with this code, but changing:\r\n```\r\n<!-- Collect the nav links, forms, and other content for toggling -->\r\n<div class=\"nav\" id=\"bs-example-navbar-collapse-1\">\r\n```\r\nTo:\r\n\r\n```\r\n<!-- Collect the nav links, forms, and other content for toggling -->\r\n<div class=\"nav navbar-collapse collapse\" id=\"bs-example-navbar-collapse-1\">\r\n```\r\n\r\nWill correct the expanding issue you are having."}}