Fix duplicate labels in dropdown components [SCI-7285]

This commit is contained in:
Anton 2022-09-29 21:11:00 +02:00
parent 31554d0fd9
commit 0107368b67

View file

@ -11,7 +11,7 @@
<template v-if="groupSelector">
<optgroup v-for="group in this.options" :label="group.label" :key="group.label">
<option v-for="option in group.options"
:key="option.label"
:key="option.value"
:value="option.value"
:selected="option.value == selectedValue || (Array.isArray(selectedValue) && selectedValue.some(e => e == option.value))"
:data-selected="option.value == selectedValue || (Array.isArray(selectedValue) && selectedValue.some(e => e == option.value))"
@ -24,7 +24,7 @@
<template v-else>
<option
v-for="option in this.options"
:key="option.label"
:key="option.value"
:value="option.value"
:selected="option.value == selectedValue || (Array.isArray(selectedValue) && selectedValue.some(e => e == option.value))"
:data-selected="option.value == selectedValue || (Array.isArray(selectedValue) && selectedValue.some(e => e == option.value))"