primereact
primereact copied to clipboard
TieredMenu: MenuItem className is not passed to DOM in unstyled mode
Describe the bug
The className Property of MenuItem is not passed to TieredMenu DOM, when running PrimeReact in unstyled mode.
Reproducer
https://codesandbox.io/p/sandbox/qqzps9
System Information
System:
OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (2) x64 AMD EPYC
Memory: 2.47 GB / 4.01 GB
Container: Yes
Shell: Unknown
Binaries:
Node: 20.9.0 - /usr/local/bin/node
Yarn: 1.22.19 - /usr/local/bin/yarn
npm: 9.8.1 - /usr/local/bin/npm
pnpm: 8.10.2 - /usr/local/share/npm-global/bin/pnpm
npmPackages:
primereact: 10.9.7 => 10.9.7
react: 19.2.0 => 19.2.0
Steps to reproduce the behavior
- Wrap a
TieredMenucomponent inside aPrimeReactProviderwith unstyled set totrue. - Create a
MenuItemwith theclassNameproperty set - Give the
MenuItemto the TieredMenu - Observe the
classNamevalue is not passed to the generatedMenuItemelement
Expected behavior
Would expect the className property to be passed to the generated element, even in unstyled mode.