Treeselect vue.js - don't show item selected on input box

1k Views Asked by At

is it possible to not show the selected items here?

enter image description here

Instead, I just want to show the placeholder which in this case it's "Select your favourite(s)... So the final input would look like this:

enter image description here

1

There are 1 best solutions below

0
Lawrence Lin On

You could set the limit prop to 0 to hide the selected items, and change the limitText prop.

<treeselect
  :multiple="true"
  :options="options"
  placeholder="Select your favourite(s)..."
  v-model="value"
  :limit="0"
  :limitText="() => 'Select your favourite(s)...'"
/>