Skip to content

Commit

Permalink
fix(BaseSelect): fix selected class error
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Feb 21, 2022
1 parent a2fc467 commit 2cc1c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/base/BaseSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
v-for="{ index, data } in optionsList"
:key="index"
class="option-item"
:class="{ selected: selectedValue && selectedValue[label] === data.id }"
:class="{ selected: selectedValue && selectedValue[label] === data[label] }"
@click="onSelect(data)"
>
<slot name="option" :option="data">{{ data[label] }}</slot>
Expand Down

0 comments on commit 2cc1c5f

Please sign in to comment.