Primefaces dialog with modal=true not working properly

后端 未结 4 1222
离开以前
离开以前 2020-12-25 14:30

I am unable to achieve a (primefaces)dialog box with attribute modal=true. It works correctly with modal=false, but when I try to set modal=t

4条回答
  •  心在旅途
    2020-12-25 14:45

    Per the Primefaces Guide 2.2 on the Dialog section:

    appendToBody FALSE Boolean Appends dialog as a child of document body.

    When using the Primefaces dialog utilize the appendToBody attribute to enable the dialog overlay to be found. The Primefaces dialog is based on the YUI dialog component which has a similar issue for modal dialog overlays.

    Manipulating the dialog overlay will involve overriding the CSS class of the overlay and specifying your own opacity.

提交回复
热议问题