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

Can I disableAutoFocus or autoFocus=false

Open whitewillow opened this issue 2 years ago • 1 comments

Is it possible to disable tooltip auto focusing? I can't find anything regarding this in the documentation - maybe there is some custom event handling i don't understand.

Im using tooltip with an input - and when an error occurs it steals the focus, while typing.

example:

<v-tooltip
  :autoHide="true"
  :open="hasError"
  :shown="hasError"
>
  <div>
    <input type="number" id="quantity" name="quantity">
  </div>
  <template #popper>
    <p>
      Input is wrong
    </p>
  </template>
</v-tooltip>

e.g like

disableAutoFocus or autoFocus=false

whitewillow avatar Jul 06 '22 09:07 whitewillow

Dublicated https://github.com/Akryum/floating-vue/issues/872

or2e avatar Jul 06 '22 23:07 or2e