primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.58k stars 989 forks source link

DropDown problem #6923

Closed ctamiozzo closed 1 month ago

ctamiozzo commented 1 month ago

Describe the bug

In version 10.7.0 the optionValue property of the DropDown component doesn't work. (in version 10.6.6 is ok) The problem is in the funcion var getOptionValue = function getOptionValue(option) { var optionValue = props.OptionValue ? utils.ObjectUtils.resolveFieldData(option, props.optionValue) : utils.ObjectUtils.resolveFieldData(option, 'value'); return utils.ObjectUtils.isNotEmpty(optionValue) ? optionValue : option; }; As you can see in the first line of the funciton there is a props.OptionValue with a capital O. This lead to the fact that the component ignores the optionValue property.

Reproducer

No response

PrimeReact version

10.7.0

React version

17.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

melloware commented 1 month ago

Duplicate of https://github.com/primefaces/primereact/issues/6822 already fixed for next release

github-actions[bot] commented 1 month ago

This issue is a duplicate and has already been reported and fixed. Please review closed issues for the upcoming milestone release.