Skip to content

Commit be24a72

Browse files
committed
Non-defaut valueKey for dropdown fix
1 parent 271d53d commit be24a72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/widgets/Dropdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Dropdown extends Component {
5858
placeholder={placeholder || _('Select an Option')}
5959
isClearable={clearable}
6060
value={opts.filter(o =>
61-
Array.isArray(value) ? value.includes(o.value) : value === o.value
61+
Array.isArray(value) ? value.includes(o[valueKey]) : value === o[valueKey]
6262
)}
6363
options={opts}
6464
isSearchable={searchable}

0 commit comments

Comments
 (0)