From 057e35cfceec0abd5fd913ed91414b2fa0d4e171 Mon Sep 17 00:00:00 2001 From: Jen Downs Date: Thu, 9 Jan 2020 17:34:01 -0600 Subject: [PATCH] fix(dropdown): use itemToElement for selected label if not null (#4977) --- packages/react/src/components/Dropdown/Dropdown.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/react/src/components/Dropdown/Dropdown.js b/packages/react/src/components/Dropdown/Dropdown.js index 1883980e9757..13cc86180657 100644 --- a/packages/react/src/components/Dropdown/Dropdown.js +++ b/packages/react/src/components/Dropdown/Dropdown.js @@ -281,7 +281,11 @@ export default class Dropdown extends React.Component { id={fieldLabelId} className={`${prefix}--list-box__label`} {...getLabelProps()}> - {selectedItem ? itemToString(selectedItem) : label} + {selectedItem + ? itemToElement + ? itemToElement(selectedItem) + : itemToString(selectedItem) + : label}