Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

p:selectOneMenu dropdown not attached to the component inside a dialog [duplicate]

I have a p:selectOneMenu inside a p:dialog. Whenever I scroll the page, the dropdown detaches from the p:selectOneMenu label and moves according to the mouse scroll. Is there any way to attach it to the label so that it doesn't move?

Here's a screenshot of the problem posted by someone who has the same problem SelectOneMenu panel scrolls with the mouse wheel

like image 708
Rajath Avatar asked Oct 04 '22 19:10

Rajath


1 Answers

In case someone finds this question, I want to add here that this problem can be found in newer versions of Primefaces (5.0+) and you can solve it by using appendTo="@this" in the p:selectOneMenu. I just found it and solved it in another more recent question.

Related:

SelectOneMenu scrolls with the mouse wheel

like image 178
mrganser Avatar answered Oct 10 '22 03:10

mrganser