Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

197
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!