sagalbot/vue-select

Cannot select item when v-select nested inside of label with certain props

Offen

#1.282 geöffnet am 10.09.2020

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (1.307 Forks)batch import
bughelp wanted

Repository-Metriken

Stars
 (4.548 Sterne)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

Describe the bug With certain props a v-select nested within a label element will not work. When the user clicks an option it appears briefly before being removed.

To Reproduce Add <v-select :options="options" :multiple="true" :close-on-select="false"> within a <label> element.

Codepen demonstration https://codepen.io/abaldwin88/pen/ExKEpaG

Expected behavior The user is able to select elements without being removed shortly after.

Screenshots Screen Recording: record2 Note: I'm using a mix of the keyboard and mouse in the recording.

Desktop:

  • Device: Macbook
  • OS: 10.13.6 High Sierra (Confirmed on multiple laptops)
  • Browser Chrome
  • Version 85.0.4183.83

Additional context Note that you can still use keyboard controls to select items.

Contributor Guide