Closed keizah7 closed 1 year ago
For unknown reason select stops updating options even vue dev tools shows that options is changing.
select
options
It's shows that where is no options, when it is some.. Why?
console.log prints new data, but select isn't showing options
<template> <div> <v-select v-model="value" :options="options" :placeholder="placeholder" label="title" @search="onSearch"> </v-select> </div> </template> ... onSearch (search) { if (search.length) { this.search(search, this); } }, search: _.debounce((search, vm) => { const autocomplete = new google.maps.places.AutocompleteService() .getQueryPredictions({ input: search }, (predictions, status) => { if (status != google.maps.places.PlacesServiceStatus.OK || !predictions) { return; } let data = []; predictions.forEach((prediction) => { data.push({ id: prediction.place_id, title: prediction.description, }); }); console.log(data); vm.options = data; }); }, 1000),
https://user-images.githubusercontent.com/49227202/197552521-c9ef4261-7d60-4813-a850-aaf4e76401fc.mov
https://user-images.githubusercontent.com/49227202/197552695-48a736f6-b1d3-47a7-833a-9f8d7318fab2.mov
Can you post a full reproduction link that I can look at?
Thank you! Looks like filterable property solved my problem
filterable
https://vue-select.org/guide/ajax.html#disabling-filtering
For unknown reason
select
stops updatingoptions
even vue dev tools shows thatoptions
is changing.It's shows that where is no options, when it is some.. Why?
console.log prints new data, but select isn't showing options
https://user-images.githubusercontent.com/49227202/197552521-c9ef4261-7d60-4813-a850-aaf4e76401fc.mov
https://user-images.githubusercontent.com/49227202/197552695-48a736f6-b1d3-47a7-833a-9f8d7318fab2.mov