Ticket #2238 (new defect)

Opened 2 years ago

Last modified 34 hours ago

Dialog: consecutive Dialog hide and show issue

Reported by: guest Owned by:
Priority: normal Milestone: future
Component: Dijit Version: 0.4.1
Severity: normal Keywords:
Cc:

Description (last modified by bill) (diff)

Creating 2 dialog boxes and consecutively showing and hiding of each leads to a show() that displays nothing with greyed back ground.

example. Click link over and over till issue.

			dojo.require("dojo.widget.*");
			dojo.addOnLoad(onload);
			function onload()
			{
			var parentnode = document.createElement("div");
			var srcNode = document.createElement("div");
			parentnode.appendChild(srcNode);
			dlg1=dojo.widget.createWidget("Dialog",{toggle:"fade"},srcNode);
			dlg1.setContent("<a href='#' onclick='dlg2test()'> dlg1 </a>");

			var srcNode2 = document.createElement("div");
			parentnode.appendChild(srcNode2);

			dlg2=dojo.widget.createWidget("Dialog",{toggle:"fade"},srcNode2);
			dlg2.setContent("<a href='#' onclick='dlg1test()'> dlg2 </a>");
				
			dlg1.show();
			
			}
			function dlg1test()
			{
				dlg2.hide();
				dlg1.show();
			}
			function dlg2test()
			{
				dlg1.hide();	
				dlg2.show();
			}

Change History

Changed 18 months ago by bill

  • owner changed from bill to koranteng
  • component changed from Widgets to Dijit
  • description modified (diff)
  • milestone set to 1.0

Changed 16 months ago by bill

  • milestone changed from 1.0 to 2.0

Changed 16 months ago by bill

  • owner deleted

Changed 9 months ago by alex

  • milestone changed from 2.0 to 1.3

Milestone 2.0 deleted

Changed 34 hours ago by bill

  • summary changed from Consecutive Dialog hide and show issue to Dialog: consecutive Dialog hide and show issue
  • description modified (diff)
  • milestone changed from 1.3 to future

Yes, I assume the problem is that you are trying to show the second dialog before the first one has finished disappearing (or vice-versa).

Note: See TracTickets for help on using tickets.