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] <a> cannot appear as a descendant of <a> in MobileNavMenu #3766

Open
2 tasks done
KishanInnovates opened this issue Mar 1, 2025 · 2 comments · May be fixed by #3775
Open
2 tasks done

[BUG] <a> cannot appear as a descendant of <a> in MobileNavMenu #3766

KishanInnovates opened this issue Mar 1, 2025 · 2 comments · May be fixed by #3775
Labels

Comments

@KishanInnovates
Copy link
Contributor

Describe the bug.

When clicking the hamburger menu on the website, a React warning appears:
Warning: validateDOMNesting(...): <a> cannot appear as a descendant of <a>

This happens because components are being wrapped inside another tag, causing improper nesting.

Expected behavior

The navigation menu should open without any React warnings or errors related to improper nesting.

Screenshots

Image

How to Reproduce

  1. Run the project locally.
  2. Click on the hamburger menu.
  3. Observe the React warning in the console.

🥦 Browser

Google Chrome

👀 Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

Yes I am willing to submit a PR!

@KishanInnovates
Copy link
Contributor Author

@anshgoyalevil @devilkiller-ag Can you please review this issue so I can raise a PR

@devilkiller-ag
Copy link
Member

Hi @KishanInnovates, you can go ahead with it and open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants