AlokaiA
Alokai3y ago
8 replies
espoge

SfComponentSelect dosen't hold selection

Hi there,
i have problem with SfComponentSelect component

         <SfComponentSelect
            :selected="option.values[0].code"
            :size="5"
            class="mr-1"
            :persistent="false" >
              <SfComponentSelectOption
              v-for="value in option.values"
              :key="value.id"
              :value="value.code"
            >
            
            {{ value.value }}
            
            </SfComponentSelectOption>
          </SfComponentSelect> 

I'm using this code but when I select an option, dosen't hold the selection. I tried with a v-model as attibute of component but :selected attribute dosen't work.
Any suggestion? Thanks
Was this page helpful?