Vue-multiselect: [Question] Selecting text of selected option

Created on 15 May 2019  路  3Comments  路  Source: shentao/vue-multiselect

Hello.

I have two questions about single-select with tags enabled. I want to be able to selected displayed text of currently selected option (by mouse or keyboard).

Can I somehow do that? If I click mouse on select element it doesn't select text, but open options list.

And another related question: can I set placeholder in opened options (tags) list to a label of currently selected item (tag) instead of :placeholder or 芦search or add tag禄?

Thanks

question

Most helpful comment

Ok, I will try to explain.

I have an old project, which uses jquery plugin typeahead: http://twitter.github.io/typeahead.js/examples/

As you can see it is a dropdown list with search and user input: https://i.ibb.co/m4L0sbm/Screenshot-20190516-121611.png

When I click to textinput I can select text with mouse (and then can copy to clipboard):
https://i.ibb.co/XbT1mWD/Screenshot-20190516-121652.png

When I use vue-multiselect I can't select text (label or customLabel) of currently selected option which is displayed in component

All 3 comments

Hey! I鈥檓 sadly a bit confused on what exactly do you mean. Would you be able to create a small JSFiddle with the example of what you want to do?

Ok, I will try to explain.

I have an old project, which uses jquery plugin typeahead: http://twitter.github.io/typeahead.js/examples/

As you can see it is a dropdown list with search and user input: https://i.ibb.co/m4L0sbm/Screenshot-20190516-121611.png

When I click to textinput I can select text with mouse (and then can copy to clipboard):
https://i.ibb.co/XbT1mWD/Screenshot-20190516-121652.png

When I use vue-multiselect I can't select text (label or customLabel) of currently selected option which is displayed in component

Sometimes copy selected item to clipboard is very important

Was this page helpful?
0 / 5 - 0 ratings