Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-10231

PopupPanel destroy javascript method causes client side exception: expr.replace is not a function

    Details

    • Steps to Reproduce:
      Hide

      Use a popup panel on the page. <rich:popupPanel id="foo" />
      Cause the panel to be reattached (so this.domReattached is true)
      Navigate to another page.
      Exception occurs.

      Show
      Use a popup panel on the page. <rich:popupPanel id="foo" /> Cause the panel to be reattached (so this.domReattached is true) Navigate to another page. Exception occurs.

      Description

      When the javascript method destroy on the popuppanel class is called, a javascript exception occurs:
      expr.replace is not a function

      I believe the problem is the destroy method (popupPanel.js line 166)
      if (this.domReattached) {
      var element = this.div;
      var parent = element.parent();
      if (parent)

      { parent.remove(element); }

      }

      I believe the correct method would be parent.removeChild(element);

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                artdaw Gleb Galkin
                Reporter:
                jgoodfellow James G
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: