Skip to content

Set initial option with vuex #1493

@Jesus82

Description

@Jesus82

I have a country selector that works with vuex. Right now I have something like this

<select-simple
    @input="mutateSelectedValue"
    :options="getSortedCountries"
    :value="getSelectedCountry"
    :label="'name'"
    :selectedcountry="getSelectedCountry"/>

Once I select a country, it works great, but the problem is that when the component first load, if there is an already selected option in vuex, there is no way to make that show. (It will show blank or it will show the placeholder) Which would be the way to make it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions