It looks like the issue is the data-toggle="collapse"
attribute on the...
<div class="collapse navbar-collapse">
Remove it, and everything should work.
data-toggle="collapse"
should only be added to the elements that trigger the collapse event (buttons), and not the elements that are the target of the collapse.