Skip to content

Commit

Permalink
render value via formatter to contain text
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnC-80 committed Oct 1, 2024
1 parent 4ab21dc commit 833dce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Selection/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ const Selection = ({
}
}, [dataOptions, selectedItem, value])

const valueLabel = defaultItemToString(selectedItem) || placeholder || '';
const valueLabel = formatter({ option: selectedItem, searchTerm: '' }) || placeholder || '';
const labelId = `sl-label-${testId}`;
const valueId = `selected-${testId}-item`;

Expand Down

0 comments on commit 833dce6

Please sign in to comment.