sagalbot/vue-select

Duplication of dropdown `appendToBody` and Vue-Router

Aberta

#1.294 aberto em 8 de out. de 2020

 (0 comentário) (0 reação) (0 responsável)JavaScript (1.307 forks)batch import
bughelp wantedvue-router

Métricas do repositório

Stars
 (4.548 estrelas)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

Describe the bug The dropdown is not deleted after each switching page with Vue-Router. Therefore multiple dropdown are maintain on the page.

To Reproduce

  1. I use append-to-body and :calculate-position="withPopper" as in the guide : Dropdown position
  2. When I use the select, a listbox is created
  3. I change the page, return back and reuse the same select
  4. A new listbox is created

Expected behavior Create and use one dropdown

Screenshots image

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version 86.0.4240.75

Guia do colaborador