Open bisubus opened 2 years ago
Any ETA on this?
Is there any update on when this might be added?
this inconsistency in PrimeVue is a big issue, especially for projects using iframe or the shadow DOM. fixing this would solve a bunch of z-index headaches in complex UIs. hoping a fix can be implemented during the RC stage before reaching the V4 stable release.
any ETA @tugcekucukoglu @mertsincan
+1 appendTo
is essential for these components.
PrimeReact has it, wonder why not PrimeVue.
I'm submitting a ... (check one with "x")
Current behavior
The following components don't have
appendTo
prop and are forced to use<Teleport to="body">
:These components accept only
appendTo
string prop, although Vue teleport supports both strings and DOM elements:It's possible to provide
Expected behavior
All listed components support both strings and elements in
appendTo
:What is the motivation / use case for changing the behavior?
This allows to consistently use custom container instead of relying on
body
, which may be undesirable on pages we don't fully control, e.g. inside a widget. Providing elements forto
prop and not relying on supposedly selectors is generally a good practice in Vue applications and could be enabled in Primevue components to get rid of prop type warnings.Vue version: 3.X
PrimeVue version: 3.12.X
Browser: [all]