New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SelectCheckboxMenu: emptyLabel not considered as overlay-target and opens behind dialog #9988
Comments
Please provide an executable example using the PrimeFaces Test project. It is the only way developers can debug your problem to help. |
I will give it a go when I have more time. For now I have debugged it myself and can see that the issue is caused by the Line 152 in 4e4430b
Line 161 in 4e4430b
and the emptyLabel gets constructed inside via regular html injection and no data attachedLine 248 in 4e4430b
It is also issue when the I have implemented a workaround/monkey patch which is to extend
|
Thanks for the debug. Let me submit a PR. |
Please review my PR! |
@melloware This bug also happens, if I klick on a multiple token label.
You might need to extend the fix to updateLabel also (or the rendering of the multiple tokens) |
Just submitted fix. |
Describe the bug
Dialog
bindEvents
checks for whethermousedown
event target wasprimefaces-overlay-target
and if not moves to top. This causes issues with clicks onselectCheckboxMenu
emptyLabel
which opens the menu/dropdown but dialog moves on top of it. When clicking on dropdown arrow or actual data label it works fine.SelectCheckboxMenu
emptyLabel
fails this check online 379
:primefaces/primefaces/src/main/resources/META-INF/resources/primefaces/dialog/dialog.js
Lines 377 to 382 in 4e4430b
Reproducer
Place selectCheckboxMenu inside popup and click on emptyLabel instead of dropdown arrow.
Menu opens but container dialog moves on top right after
Expected behavior
Menu should open on top of the dialog
PrimeFaces edition
Elite
PrimeFaces version
12.0.3
Theme
No response
JSF implementation
Mojarra
JSF version
2.3
Java version
8
Browser(s)
No response
The text was updated successfully, but these errors were encountered: