Skip to content

Automatically close mobile menu when clicking outside #26

@MikaBerglund

Description

@MikaBerglund

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions