primereact
primereact copied to clipboard
ConfirmDialog: Value from PrimeReactProvider is not applied
Describe the bug
Using PrimeReact in unstyled mode, some values from confirmDialog in ptOptions are not applied.
I tried to fix it but I was unable due to #6900
The only thing I could think of was to add || ptm('confirmdialog') in ConfirmDialog.js - Line 242
But I'm not sure if this would work.
Reproducer
https://stackblitz.com/edit/ue5bu1?file=src%2Fmain.jsx
System Information
System:
OS: Windows 11 10.0.22631
CPU: (20) x64 12th Gen Intel(R) Core(TM) i9-12900HK
Memory: 34.29 GB / 63.71 GB
Binaries:
Node: 22.4.1 - ~\AppData\Local\nvs\default\node.EXE
npm: 10.8.1 - ~\AppData\Local\nvs\default\npm.CMD
pnpm: 9.6.0 - ~\AppData\Local\pnpm\pnpm.CMD
Browsers:
Edge: Chromium (127.0.2651.74)
Internet Explorer: 11.0.22621.3527
npmPackages:
react: 18.3.1 => 18.3.1
Steps to reproduce the behavior
- Go to reproducer
- Inspect dialog
- See that unique classes from PT that are being applied are icon and message
Expected behavior
All the classes defined in PT are applied.