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

Headless Confirm dialog shows no styles. #5945

Closed
core2drew opened this issue Feb 12, 2024 · 5 comments
Closed

Headless Confirm dialog shows no styles. #5945

core2drew opened this issue Feb 12, 2024 · 5 comments
Labels
Resolution: Invalid Issue or pull request is not valid in the latest version

Comments

@core2drew
Copy link

core2drew commented Feb 12, 2024

Describe the bug

I followed the documentation on how to implement the Headless Confirm dialog and it doesn't seem to work as expected.

Here I just copy and paste it from the site.

image

And here is how I called it is also a copy paste code fom the site (you might notice that I remove the "group" and "mahmut" cause it has error on my side for some reason).

image

Here is what it looks like on my side when I called it.
image

I also notice that it has error message in the console about:
Invalid value for prop content on

tag.

image

Reproducer

No response

PrimeReact version

10.5.0

React version

18.x

Language

TypeScript

Build / Runtime

Vite

Browser(s)

Chrome, Firefox

Steps to reproduce the behavior

Follow the implementation for headless confirm dialog in the prime react site (latest version - 10.5.0)

Expected behavior

No response

@core2drew core2drew added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 12, 2024
@melloware melloware added Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 12, 2024
@melloware
Copy link
Member

So if you are using styled mode make sure you include a PrimeReact Theme

If you are using unstyled mode it is a duplicate of this #5837

@melloware melloware closed this as not planned Won't fix, can't repro, duplicate, stale Feb 12, 2024
@core2drew
Copy link
Author

core2drew commented Feb 12, 2024

Sorry, I didnt include the imports, but yes I included the PrimeReact theme.

image

even I added this it has the same issue above.

@melloware
Copy link
Member

Can you create a reproducer it works fine for me and has for years using Pr themes.

@melloware melloware added Status: Needs Reproducer Issue needs a runnable reproducer and removed Resolution: Duplicate Issue has already been reported or a pull request related to same issue has already been submitted labels Feb 12, 2024
Copy link

github-actions bot commented Feb 12, 2024

Please fork the Stackblitz project and create a case demonstrating your bug report. This issue will be closed if no activities in 20 days.

@core2drew
Copy link
Author

I think I got the answer, I need to use PrimeFlex for this to work..

Thanks for the support :)

@melloware melloware added Resolution: Invalid Issue or pull request is not valid in the latest version and removed Status: Needs Reproducer Issue needs a runnable reproducer labels Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Invalid Issue or pull request is not valid in the latest version
Projects
None yet
Development

No branches or pull requests

2 participants