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] - React error about portalContainer #4501

Open
flash1293 opened this issue Jan 5, 2025 · 1 comment · May be fixed by #4506
Open

[BUG] - React error about portalContainer #4501

flash1293 opened this issue Jan 5, 2025 · 1 comment · May be fixed by #4506
Assignees
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working

Comments

@flash1293
Copy link

flash1293 commented Jan 5, 2025

NextUI Version

2.6.11

Describe the bug

When using the NavbarMenu component with next-ui react 2.6.11 and next.js 15.1.3, an error is shown:

Invalid prop `portalContainer` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.

Everything seems to work fine otherwise.

Your Example Website or App

https://stackblitz.com/edit/vitejs-vite-hhenhbdx?file=src%2FApp.tsx

Steps to Reproduce the Bug or Issue

  • Load the app
  • Open dev console
  • Resize and click a couple times in the app frame
  • See errors about portalContainer shown in the console

Expected behavior

There shouldn't be any errors

Screenshots or Videos

Screenshot 2025-01-05 at 23 40 47

Operating System Version

macOS

Browser

Chrome

Copy link

linear bot commented Jan 5, 2025

@wingkwong wingkwong added 🐛 Type: Bug Something isn't working 📦 Scope : Components Related to the components labels Jan 7, 2025
@Peterl561 Peterl561 linked a pull request Jan 7, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Scope : Components Related to the components 🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants