p-dropdown: Panel not positioned correctly under some specific filter circumstances #16050
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
I have a dropdown with these specific characteristics:
When a panel is displayed, it gets positioned correctly based on the available space around the dropdown and the size of the panel. It can be above or below the dropdown, and it may extend to the right or the left based on how close it is to the edge. All this is great!
However, when the panel is shown extending to the left and we use the keyboard to filter a subset of shorter description options, the panel gets re-sized but not re-positioned, resulting in a panel that is far from its dropdown as shown in this screen capture.
Environment
Our internal application has a page with multiple instances of these dropdowns.
The layout of the page is data driven so we have multiple layouts where at times there are only a few dropdowns and most time we have a more significant amount of these.
The page where these dropdowns are used has other information the users need on the screen so it is important for users to see the options close to the specific dropdown they are working with.
Our users for the most prefer to work with the keyboard.
Reproducer
https://stackblitz.com/edit/dropdown-panel-sample?file=src%2Fcomponents%2Fapp-component.html
Angular version
18.0.0
PrimeNG version
17.18.4
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
22.3.0
Browser(s)
Chrome 126
Steps to reproduce the behavior
Please see stackblitz sample above.
Two steps:
Expected behavior
After re-size, panel should re-position close to the dropdown according to current rules (below the dropdown if possible, otherwise above; extend to the right if possible, otherwise to the left.
The text was updated successfully, but these errors were encountered: