Skip to content

Commit 39413b4

Browse files
authored
Merge pull request #19 from DogusErdem/fix/multiple-dropdown-displaybuttonvalue
fix: updated multiple dropdown menu displayButtonValue prop
2 parents 5df995d + 68ebc9e commit 39413b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Dropdown/MultipleSelectDropdown.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const MultipleDropdown: FCCWD<DrowdownProps> = (
5757
selectedObjectsTemp.push(value);
5858
}
5959
onSelect(selectedObjectsTemp);
60+
6061
setSelectedObjects(selectedObjectsTemp);
6162
};
6263

@@ -103,7 +104,7 @@ const MultipleDropdown: FCCWD<DrowdownProps> = (
103104
{!isObjectSelected ?
104105
(buttonTitle || 'Please Select')
105106
: selectedObjects.length <= displayLength ?
106-
`${selectedObjects}` :
107+
`${selectedObjects.map(item => displayedButtonValue(item))}` :
107108
`${selectedObjects?.length} Selected`}
108109
</Animated.Text>
109110
{right || (

0 commit comments

Comments
 (0)