When creating a Dropdown comp without the optionLabel property, opening the dropdown causes the page to error. When in the past it would properly default to "label".
This is especially a problem with RowsPerPageDropdown in Paginator where you cannot simply add that prop.
Describe the bug
When creating a Dropdown comp without the
optionLabel
property, opening the dropdown causes the page to error. When in the past it would properly default to"label"
.This is especially a problem with
RowsPerPageDropdown
inPaginator
where you cannot simply add that prop.Reproducer
https://stackblitz.com/edit/vitejs-vite-sswemw?file=src%2FApp.tsx
PrimeReact version
10.6.4
React version
18.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Dropdown
optionLabel
propExpected behavior
Not setting the
optionLabel
property should default to using"label"
.