By default, the Bootstrap Navbar does not close the mobile menu when clicking or tapping outside of the menu.
This should be implemented as a boolean parameter in Navbar so that developers could just turn it on. By default, the behaviour should be as the default Bootstrap Navbar works, meaning that it won't close automatically.
Since Navbar internally uses the Collapse component, the functionality should be implemented in that component, and then just reused in the Navbar component.