Skip to content

Commit

Permalink
Merge pull request #32 from navedqb/fix--5455
Browse files Browse the repository at this point in the history
fix: duplicate keys on search in multiselect
  • Loading branch information
navedqb authored Mar 21, 2024
2 parents 71db0ae + 4d942f4 commit 2563ab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/multiselect/MultiSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ export default {
getOptionValue(option) {
return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;
},
getOptionRenderKey(option) {
return this.dataKey ? ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);
getOptionRenderKey(option, index) {
return this.dataKey ? ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option) + `_${index}`;
},
getHeaderCheckboxPTOptions(key) {
return this.ptm(key, {
Expand Down

0 comments on commit 2563ab9

Please sign in to comment.