A
Alokaiespoge

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>
<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
Y
Yash338d ago
Are you using StorefrontUI 2?
E
espoge338d ago
yes
Y
Yash338d ago
But I don't find any component named SfComponentSelect in StorefrontUI.
Y
Yash338d ago
Oh, its in Storefront UI 1 and not in Storefront UI 2.
E
espoge337d ago
ok, I'm sorry but I think it works in the similar way I solved with a default value in my model
Want results from more Discord servers?
Add your server
More Posts
SFUI 2.x with Magento 2How can i use SFUI 2.x with Magento 2. Want to test SFUI 2.x on my local machine to see its performaVSF2 + OpenMageGreetings 🙂 I have a question regarding the integration of Vue-Storefront 2 with Magento 1.9 (OpenHi AllI am trying to implement Payment gateway in vsf ,But I cannot find the yarn or npm package mentioneBasic AuthHi all. I have a question regarding authentication. On our prod instance everything works fine. But "Accept all cookies"I am using shopware-pwa with Shopware 6 and I'm trying to expose an Accept all cookies button. The sFollowing Digitalocean deploy tutorial leads to errorHello! I'm following this step-by-step tutorial https://vuestorefront.io/blog/step-by-step-guide-dePaymentsI am planing to implement vsf payments for magento , I am following this guide "https://docs.vuestorHow to add additional field to Customer Typecompared to what it is said in the documentation I'm only able to get few information from the user CookiesWhere can I find more info on cookies ? Meaning, are the merchant cookies exposed to Storefront ? OrEditing index.js file in.nuxt projectHello I would like to add bootstrap to my porject so i added the import into the index.js file to maError deploying - connect ECONNREFUSED 127.0.0.1:80Hi - it's me again 🙂 in local development, using `yarn dev` everything works fine. Even directly Error _theme/layouts/default.vueHi i'm getting this error - does anyone know how to solve this?how to send an API content-type:multipart/form-data of this format in api-client?how to send an API content-type: multipart/form-data of this format in api-client?Themes marketplaceAre there any places where I can buy a Vue Storefront theme?, something like themeforest for ShopifyGetting error while static deploy vsf with magento 2 in EC2 for production ,yarn build yarn start works , but as soon as terminal is closed server stops if i build it with taDefault locale does not workHi everybody, when I set the defaultLocale in nuxt.config.js, it seems that it does not work, the rVue Storefront Cloud Docs Swagger authorizationHi there! The docs at https://docs.vuestorefront.io/cloud/v2/api/swagger.html say that `Access to Ash: cli: command not foundanyone know why i would be getting this error `sh: cli: command not found` when doing a new install