mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-07 05:03:26 +08:00
Merge pull request #4486 from aignatov-bio/ai-sci-7285-fix-duplicate-label-in-dropdown-component
Fix duplicate labels in dropdown components [SCI-7285]
This commit is contained in:
commit
aba760f1a4
1 changed files with 2 additions and 2 deletions
|
@ -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))"
|
||||
|
|
Loading…
Reference in a new issue