Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Search input in the navbar closes the menu when clicked. #46

Closed
SandraBergstrom opened this issue Jun 22, 2023 · 1 comment
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@SandraBergstrom
Copy link
Owner

When opening the burger menu and then clicking the search bar, the burger menu then closes again. Implemented a custom hook (useClickOutsideToggle) to handle click events outside the menu and the menu item to close when clicked. This makes the menu closing also when clicking the search bar input field.

@SandraBergstrom
Copy link
Owner Author

Solution: Updated the click event handling for the search input to prevent the menu from closing when it is clicked. Added a reference to the search input to exclude it from the click event handling.

@SandraBergstrom SandraBergstrom self-assigned this Jul 7, 2023
@SandraBergstrom SandraBergstrom added the bug Something isn't working label Jul 7, 2023
@SandraBergstrom SandraBergstrom added this to the Sprint 2 milestone Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant