Skip to content

Commit

Permalink
fix(Select): fix checkall default value (#3298)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn authored Dec 25, 2024
1 parent 39b9139 commit 2b79edb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/select/util/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,9 @@ export const getSelectedOptions = (
if (multiple) {
currentSelectedOptions = isObjectType
? (value as Array<SelectValue>)
: tmpPropOptions?.filter?.((v) => (value as Array<string | number>).includes?.(v[keys?.value || 'value']));
: tmpPropOptions
?.filter?.((v) => (value as Array<string | number>).includes?.(v[keys?.value || 'value']))
.map((v) => v[keys?.value || 'value']);
currentOption = isObjectType
? (value as Array<SelectValue>).find((v) => v[keys?.value || 'value'] === selectedValue)
: currentSelectedOptions.find((option) => option[keys?.value || 'value'] === selectedValue);
Expand Down

0 comments on commit 2b79edb

Please sign in to comment.