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

OverlayPanel: Doesn't work in SSR #2871

Closed
jf908 opened this issue Aug 22, 2022 · 0 comments
Closed

OverlayPanel: Doesn't work in SSR #2871

jf908 opened this issue Aug 22, 2022 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@jf908
Copy link

jf908 commented Aug 22, 2022

Describe the bug

Unrelated to #2853, OverlayPanel doesn't work on Nuxt because of this use of document:

[nitro] [dev] [unhandledRejection] ReferenceError: document is not defined

document.addEventListener('click', this.outsideClickListener);
called by this immediate watcher
this.bindOutsideClickListener();

Reproducer

No response

PrimeVue version

3.16.1

Vue version

3.x

Language

ALL

Build / Runtime

Nuxt

Browser(s)

No response

Steps to reproduce the behavior

Try to SSR render in a Nuxt app.

Expected behavior

No response

@jf908 jf908 added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Aug 22, 2022
@mertsincan mertsincan added this to the 3.16.2 milestone Aug 22, 2022
@tugcekucukoglu tugcekucukoglu self-assigned this Aug 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

3 participants