From ff5d32848ca6dd68194d22cd20d5d4fdc356584c Mon Sep 17 00:00:00 2001 From: Batuhan Tomo <91488737+Rekl0w@users.noreply.github.com> Date: Wed, 1 May 2024 14:52:35 +0300 Subject: [PATCH] Fix #6518: fix optionLabel (#6520) --- components/lib/dropdown/Dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/dropdown/Dropdown.js b/components/lib/dropdown/Dropdown.js index 55d2336dc3..e7aec1cc90 100644 --- a/components/lib/dropdown/Dropdown.js +++ b/components/lib/dropdown/Dropdown.js @@ -883,7 +883,7 @@ export const Dropdown = React.memo( }; const getOptionLabel = (option) => { - return props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : option; + return props.optionLabel ? ObjectUtils.resolveFieldData(option, props.optionLabel) : ObjectUtils.resolveFieldData(option, 'label'); }; const getOptionValue = (option) => {