Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

202
Visualizações
Override a <Teleport /> that is defined in an imported package in Vue 3

I am using PrimeVUE's DataTable with filtering. I have it set to "menu", which causes a dropdown menu to appear, allowing users to fill in a query which will filter the rows based on that.

Internally, PrimeVUE uses Vue's <Teleport /> component to attach te menu to body. Generally, this is good.

However, in my specific case, I use "Single SPA", which wraps the whole app inside #single-spa-application:web-app-2.

All styling is contained inside #single-spa-application:web-app-2. So, once I click the "filter" button, no styling is applied to the dropdown menu because it's outside of the CSS scope:

Image showing lack of CSS styling on dropdown menu

Some other PrimeVUE components provide an appendTo="#single-spa-application:web-app-2" option, which works wonderfully. However, this component does not.

Is it possible to "override" any Teleports within a certain component to point somewhere else? Currently, the only way I see is to actually fork and modify their code.

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda