JonathanDn / vue-dropdown

A highly dynamic vue dropdown component
39 stars 12 forks source link

Options value are not being displayed because `option` and `i` are inverted #17

Open agardes opened 1 year ago

agardes commented 1 year ago

Found out that options weren't being displayed because in the v-for loop, option and i are in the wrong order. That is the correct order :

<div v-expand="isExpanded" class="options expand">
    <div
        v-for="(option, i) in configOptions"
        :key="'option-' + i"
        class="option"
        @click="setCurrentSelectedOption(option);"
    >
        {{ option.value }}
    </div>
</div>