PR fixes an issue with <Dropdown> where its apparent selected value did not get updated when children change.
Case: Switching application's language. The selected DropdownItem's value remains the same, but its displayed value changes. We need to handle this case and force the recalculation of selectedValueNode in the Dropdown's state.
How Has This Been Tested?
Styleguidist on Chrome
Release notes
Dropdown
Fix an issue where visible selected value did not get updated when changing application language (DropdownItem visible text changes but value remains the same)
Description
PR fixes an issue with
<Dropdown>
where its apparent selected value did not get updated when children change.Case: Switching application's language. The selected DropdownItem's
value
remains the same, but its displayed value changes. We need to handle this case and force the recalculation ofselectedValueNode
in the Dropdown's state.How Has This Been Tested?
Styleguidist on Chrome
Release notes
Dropdown