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.

Refreshing page while a dialog is visible causes unnecessary ajax call and duplicate DOM nodes #1913

@sunpig

Description

@sunpig

This feels like it is related to issue 1604 (#1604); it is certainly related to navigation.

For a page (e.g. navtest.html) where there is a page and a dialog declared inline on the page, the following repro steps lead to problems:

  1. Load the page
  2. Open the dialog (URL goes to http://.../navtest.html#myPage&ui-state=myDialog
  3. Don't close the dialog; instead, just refresh the page

When the page refreshes with the URL http://.../navtest.html#myPage&ui-state=myDialog, after page load the framework does the following:

  1. it makes a follow-up ajax call to http://.../navtest.html
  2. it extracts the #myPage div from the ajax request, and
  3. inserts it into the DOM

This means that there are now 2 instances of #myPage in the DOM.

Full repro steps and example code here: http://jsbin.com/ekugi4/2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions