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

[DataTable with virtual scroll] Using primevue inside shadow-dom #3037

Closed
moduval opened this issue Sep 27, 2022 · 1 comment
Closed

[DataTable with virtual scroll] Using primevue inside shadow-dom #3037

moduval opened this issue Sep 27, 2022 · 1 comment
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@moduval
Copy link

moduval commented Sep 27, 2022

Describe the bug

When using this component with datatable and virtual scroll, some style seems to be added with some sort of lib. Those styles are added outside shadow dom so they do not apply to the data table. Is there a way to make PrimeVue work with shadow dom?

Reproducer

No response

PrimeVue version

3.17.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

Use a datatable inside a shadow-dom web-component with multiple elements in it. See that some style are not working (like the height of the table is not applied)

Expected behavior

Work as expected inside shadow-dom

@moduval moduval added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Sep 27, 2022
@scvnc
Copy link

scvnc commented Apr 19, 2023

I am also trying to use PrimeVue in a Shadow DOM and am experiencing some style issues. At least in my case it is related to the fact that PrimeVue appears to append elements to the document.body for some of its features, and the styles that may be scoped to the inside of the Shadow DOM are not found.

Here is my test harness for exploring this issue... perhaps if you add DataTable with your use case, it would illustrate the same issue.

https://scvnc.github.io/experiment-primevue-shadowdom/

@mertsincan mertsincan added this to the 3.45.0 milestone Dec 19, 2023
@mertsincan mertsincan self-assigned this Dec 21, 2023
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