Skip to content

Commit

Permalink
Merge pull request #198 from sha-hin/master
Browse files Browse the repository at this point in the history
Fixed array of strings options with custom label and value keys
  • Loading branch information
sa-si-dev authored Oct 30, 2022
2 parents 7900dd1 + 76d42cb commit 55d206a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/virtual-select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ export class VirtualSelect {
const prepareOption = (d) => {
if (typeof d !== 'object') {
// eslint-disable-next-line no-param-reassign
d = { value: d, label: d };
d = { [valueKey]: d, [labelKey]: d };
}

const value = secureText(getString(d[valueKey]));
Expand Down

0 comments on commit 55d206a

Please sign in to comment.