vue-select icon indicating copy to clipboard operation
vue-select copied to clipboard

Option to disable the keeping of focus after selection

Open J-Michalek opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. We were used to the input loosing focus after an option was selected and would like to have a way to preserve the functionality.

Describe the solution you'd like I would like a prop being added that makes the behavior the same as before the changes made here.

Describe alternatives you've considered Functioning workaround:

<v-select
  ref="vSelect"
  @close="
    () => {
      $refs.vSelect?.$el.querySelector('input[type=search]')?.blur();
    }
  "
>

J-Michalek avatar Jan 06 '23 11:01 J-Michalek

While the workaround could be easier (below), I support the idea for a specific prop to keep the code more elegant:

<v-select @close="$el.querySelector('input[type=search]')?.blur()">

ipa1981 avatar Jul 10 '23 12:07 ipa1981