A native Vue.js component that provides similar functionality to Select2 without the overhead of jQuery. This tag relates to the package at https://www.npmjs.com/package/vue-select and should not be used for general questions about
Questions tagged [vue-select]
125 questions
0
votes
0 answers
option selected with vue-select and get value in function
I´m trying to create a select with this library, but my problem it´s that i need get info from option selected and call other function to add tr in table. I´m working with vue js 3 and composition API.
i can show, that if i use this code:

scorpions77
- 51
- 8
0
votes
0 answers
fill vue-search-select with axios and laravel api
I´m trying to fill my component vue-search-select with axios get and my laravel API. I´m receiving my data ok, but i can´t fill my select. In console i can show this:
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading…

scorpions77
- 51
- 8
0
votes
2 answers
Using vue-select or another nice select box with ESM vuild of Vue 3
I have the following simple setup, with a client-side javascript app using Vue 3:
HTML (with a select box):
Test
0
votes
3 answers
vue-select "required" attribute not working as expected
I am using Vue-select and want to make the drop-down mandatory, but looks like it is not working.
Tried the required, rules but had no luck.

Sachin
- 459
- 1
- 7
- 22
0
votes
1 answer
Vue JS v-select cannot diplaying text from json
I have difficulty using vue-select (v-select) when editing data. Currently v-select displays the ID, the data that should appear is the text or label.
const detailPresensi = {
detail_data: [{
"id": 3,
"project_id": 1,
…

Toni Rhubanaga
- 43
- 6
0
votes
0 answers
Nuxt-vue-select does not load on production build
I'm using "nuxt": "^2.15.8", and Nuxt-vue-select, when i run npm run dev everything loads accordingly, but when i do npm run build + npm start the nuxt-vue-select module does not load, below are my modules and build modules. (tried to put it in…

A.Black
- 3
- 3
0
votes
1 answer
Getting option label via $emit
I'm using vue-select as my dropdown. Vue-select has a prop called getOptionLabel to return a property from an object. I have a component where I pass a method to to get the code from the option object and I emit the method from my created component…

user19991216
- 27
- 5
0
votes
2 answers
Multiple VueSelect
I am obtaining from an API the data to fill a v-select type component, the component is filled correctly and I also obtain the options that the user already had assigned (multiple)
And the v-select component are filled correctly
But when i try to…
0
votes
2 answers
Pre-defined items in array gets overwritten by values from database. How do I solve this?
I am using Vue Select to generate a list, where users can add tags, which are saved to a database, but I would like to have some pre-defined values in the list that the user can pick as tags when clicking on them. I tried adding these to the options…

Maflec
- 41
- 2
0
votes
0 answers
Make vue-select option selectable
How can I make options selectable again when I change the selected option to a new option and clear the selected option? I have an add item button where user can click it multiple and it will add a dropdown. If the Item 1 option is already selected…

user19991216
- 27
- 5
0
votes
1 answer
Vue-Select library: How to limit number of characters entered as a tag?
I am using the Vue-Select library to allow my users to submit tags for a post like so:
How can I limit the number of characters per word (lets say not more than 10 chars) using this library?
Do I handle the logic within the createOption prop ?
…

redshift
- 4,815
- 13
- 75
- 138
0
votes
1 answer
Vue-Select: How to save all entries as lower case items?
I am using the vue-select library. How can I force input entries to make all characters lower case? Right now, when I type the word "Baseball" into the input field, the tag is saved as "Baseball". I would like all tags to only keep a lower case…

redshift
- 4,815
- 13
- 75
- 138
0
votes
1 answer
How to use vue-select in a simple HTML page?
It is my first "try" with Vue + vue-select.
I have imported Vue and vue-select like it is explained in the vue-select documentation.
And my first try is this simple HTML page :