Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

panel (outside page): panel=open is not removed from the page object when changing page. Breaks panel when going back to this page. #6650

@frequent

Description

@frequent

Not so easy to explain or do in JSBIN...

Here is a: demo page

  • Use Firefox
  • On first page, open panel, click "Invoices"
  • (page will stall while dumping sample data to localstorage)
  • On invoice page, the panel still opens/closes
  • Click "Home" in header top right or back button
  • Back on first page, the panel will not open any more.

Checking with Firebug/Firequery I can see that panel=open is set on the page object of the first page I left when clicking a link on the panel.

When now going back from B to A panel=open is still there as well as some classes set on the ui-content panel wrapper.

So when trying to open the panel again, inside the panel widget:

      if ( self._page().jqmData( "panel" ) === "open" ) {
        self.document.on( "panelclose", function() {
          _openPanel();
        });
      } else {
        _openPanel();
      }

this always ends up in the first handler vs. the second, preventing the panel from opening again.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions