Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-125881

Liferay Popup displays " " in modal-title if no title is defined

Description

    Reproduction steps:
    1) Start a master bundle
    2) Open up the browser's console with F12 (no need to login into Liferay)
    3) Paste this snippet and hit enter:

    Liferay.Util.openWindow({
        dialog: {
            modal: true,
            width: 500,
            centered: true,
            draggable: false,
            resizable: false,
            cssClass: 'classRed',
            bodyContent: 'Test dialog box'
        },
        id: 'confirmationDialogId'
    });
    

    4) A pop-up will open. Observe the top part where the title usually appears:

    Expected:
    No title to appear

    Actual behavior:

    " "

    will be displayed as a title

    Attachments

      Activity

        People

          summer.zhang Summer Zhang
          roland.pakai Roland Pákai
          Kiyoshi Lee Kiyoshi Lee
          Roland Pákai Roland Pákai
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

          Dates

            Created:
            Updated:
            Resolved:
            1 year, 46 weeks, 3 days ago

            Packages

              Version Package
              7.0.0 DXP FP102
              7.0.10.16 DXP SP17
              7.0.X
              7.1.10 DXP FP21
              7.1.X
              7.2.10 DXP FP11
              7.2.10.4 DXP SP4
              7.2.X
              7.3.10 DXP FP1
              7.3.10.1 DXP SP1
              7.3.6 CE GA7
              7.3.X
              7.4.13 DXP GA1
              Master