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

The element nextjs-portal affects other elements on the site #70675

Open
martinsione opened this issue Oct 1, 2024 · 2 comments · May be fixed by #70676
Open

The element nextjs-portal affects other elements on the site #70675

martinsione opened this issue Oct 1, 2024 · 2 comments · May be fixed by #70676
Labels
bug Issue was opened via the bug report template. Developer Experience Issues related to Next.js logs, Error overlay, etc.

Comments

@martinsione
Copy link

Link to the code that reproduces this issue

https://github.com/martinsione/nextjs-portal-bug-repro

To Reproduce

  1. Start the application in development
  2. You should see how nextjs portal has side effects when it pops up

Current vs. Expected behavior

Current Behaviour Expected behaviour
Screenshot 2024-09-30 at 5 23 55 PM Screenshot 2024-09-30 at 5 24 17 PM

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000
  Available memory (MB): 16384
  Available CPU cores: 10
Binaries:
  Node: 20.12.2
  npm: 10.8.1
  Yarn: 1.22.22
  pnpm: 9.10.0
Relevant Packages:
  next: 15.0.0-canary.173 // Latest available version is detected (15.0.0-canary.173).
  eslint-config-next: 15.0.0-canary.173
  react: 19.0.0-rc-3edc000d-20240926
  react-dom: 19.0.0-rc-3edc000d-20240926
  typescript: 5.6.2
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Developer Experience

Which stage(s) are affected? (Select all that apply)

next dev (local)

Additional context

No response

@martinsione martinsione added the bug Issue was opened via the bug report template. label Oct 1, 2024
@github-actions github-actions bot added the Developer Experience Issues related to Next.js logs, Error overlay, etc. label Oct 1, 2024
@martinsione martinsione linked a pull request Oct 1, 2024 that will close this issue
@samcx
Copy link
Member

samcx commented Oct 1, 2024

@martinsione I'm not able to replicate this with the :repro:. Are you sure the :repro: is exactly how it was for the screenshot?

CleanShot 2024-10-01 at 15 29 13@2x

@martinsione
Copy link
Author

@samcx I think you are replicating it correctly. If you delete the nextjs-portal (using devtools) element you'll see how element 2 is pushed to the bottom as it should be (right picture).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template. Developer Experience Issues related to Next.js logs, Error overlay, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants