From 4d942f4e02be0de82dbd41682d2ba91727d4d1d2 Mon Sep 17 00:00:00 2001 From: navedqb <109583873+navedqb@users.noreply.github.com> Date: Fri, 22 Mar 2024 00:47:11 +0530 Subject: [PATCH] fixes duplicate keys on search in multiselect --- components/lib/multiselect/MultiSelect.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/lib/multiselect/MultiSelect.vue b/components/lib/multiselect/MultiSelect.vue index 3037866cb3..5175103c55 100755 --- a/components/lib/multiselect/MultiSelect.vue +++ b/components/lib/multiselect/MultiSelect.vue @@ -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, {