primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.34k stars 4.58k forks source link

Component: Drawer v18 - Does not respect the hierarchical level of the elements #16358

Open Panne-Ita opened 1 month ago

Panne-Ita commented 1 month ago

Describe the bug

In the latest version of primeng 18, the sidebar component has been renamed to drawer, but its opening behavior has also changed.

Through the two links in the guide, you can already see the difference: In version 17 [https://primeng.org/sidebar], the sidebar opened inside the parent node and it was possible to set specific css of the parent child type:

image

In version 18 [https://v18.primeng.org/drawer], the drawer component remains empty inside the parent node, while its code now appears outside the DOM hierarchy.

image

image

Environment

PrimeNG Version: 18 Browser: Chrome Operating System: Windows

Reproducer

https://v18.primeng.org/drawer

Angular version

18

PrimeNG version

18

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

21

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

The new Drawer should behave as in version 17, that is to maintain a hierarchy of elements

Panne-Ita commented 3 hours ago

Still no fix in 18.0.0-beta.3