multiselect icon indicating copy to clipboard operation
multiselect copied to clipboard

focus() issue

Open WhatArmy2 opened this issue 1 year ago • 1 comments

How to programically focus() multiselect field? I am using vue3 and the solution given in the readme does not work. Thank you

WhatArmy2 avatar Mar 06 '24 10:03 WhatArmy2

@WhatArmy2 That way worked for me:

<script setup>
// ...
const input = ref();

const focusOnInput = () => {
  input.value.$refs.input.focus();
}
</script>

<template>
  <Multiselect
    ref="input"
    //...
  />

</template>

Btw, this kind of question is usually answered faster on their Discord channel

aelnonym avatar Mar 22 '24 16:03 aelnonym