Skip to content

Bug : Mobile navbar does not close when clicking outside #188

Description

@historictors

While using the website, I noticed that when a user opens the mobile navbar,
it does not close when clicking anywhere outside the menu (i.e., on the body).

Expected behavior:

  • When the navbar is open and the user taps outside the menu, the navbar should automatically close.

Actual behavior:

  • The navbar stays open even when the user clicks/taps on the body or empty space.
  • This results in a poor user experience and blocks the view of the page content.

This fix adds an event listener that closes the navbar when clicking outside,
ensuring proper mobile navigation behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions