Skip to content

Async Selection Feedback Lost on Rerender #228

@Libertie

Description

@Libertie

I'm running into an issue when using ajax to search for and set options. After selection, the value displayed in multiselect-single-label is lost whenever a rerender of the multiselect is triggered. This only occurs when the default async return does not include the selected option.

<Multiselect
  v-model="value"
  :delay="200"
  :filter-results="false"
  :options="async (query) => await fetchRecords(query)"
  placeholder="Languages"
  searchable
/>

You can see the issue in action at https://jsfiddle.net/libertie/sey1t4mb/16/

Any suggestions for how to address this loss of state?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions