Closed alanwhite2019 closed 5 years ago
Hi Alan,
I'm afraid I'm not following: is it an issue with the select or the data table?
Can you provide more information?
Hi @gandesc Here you can see the problem in my screenshot: https://www.screencast.com/t/lv7qwvhV
What I am doing in code for: Destination Name filter (second filter):
Route::get('get-destination-tags', 'DestinationController@options')->name('get-destination-tags');
In my controller i added:
use OptionsBuilder;
protected $queryAttributes = ['destination_name', 'id'];
public function query() {
return RateCard::select(['destination_name','id'])->groupBy('destination_name');
}
<vue-select-filter class="box"
source="/get-destination-tags"
label="destination_name"
title="Destination Name"
trackBy="destination_name"
value="filters.rate_cards.destination_name"
:limit="limit"
v-model="filters.rate_cards.destination_name"/>
</vue-select-filter>
In Data, i defined:
filters: {
rate_cards:{
destination_name:'',
tpid:'',
prefix:''
},
},
I commented Line 369 in VueSelect.vue and it worked for me.
hideDropdown() {
// this.query = '';
this.dropdown = false;
this.position = null;
},
Hi. @gandesc
I am having issues with dynamic select:
Any guide please?