0

I'm using vue-select. When I want to display the selected element, it shows me the value and not the text (see the screen). I saw on several reports (and on the documentation) that I could use reduce. I also saw that I could add a ":key" props on the component but that doesn't work either.

Here I choose the item :

enter image description here

Here the selected item, it displays the value and not the text : (Here the problem)

enter image description here

My component file (input-custom.vue) :

enter image description here

My component in page: enter image description here

Data in page:

enter image description here

Max
  • 13
  • 4

1 Answers1

0

I found the solution.

This is my "handleInput" method.

I emit "e.value" but I want to emit the Object, so replace "e.value" => "e"

Max
  • 13
  • 4