Opened 6 years ago

Closed 3 years ago

#17131 closed defect (patchwelcome)

dijit/popup fails to open after previous popup destroyed without explicit close

Reported by: jeffreym Owned by: bill
Priority: undecided Milestone: 1.13
Component: Dijit Version: 1.9.0
Keywords: Cc:
Blocked By: Blocking:

Description

When a popup is destroyed while open, dijit/popup still keeps it in its open list. The next popup to be opened will fail, as dijit/popup dereferences a null while trying to close the old (now-destroyed) popup.

Attachments (1)

dijitpopupbug.html (1.1 KB) - added by jeffreym 6 years ago.
Example of the bug - click create, then destroy, then create again; notice the dropdown doesn't appear the second time

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by jeffreym

Attachment: dijitpopupbug.html added

Example of the bug - click create, then destroy, then create again; notice the dropdown doesn't appear the second time

comment:1 Changed 6 years ago by bill

I see. Dialog has tests (and code) to handle this (see the "out-of-order dialog hide/destroy" test group in Dialog.html) so I guess popup should too, although I'm always reluctant to bloat the code for corner cases like this.

comment:2 Changed 3 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in the past 2+ years, I'm closing this as patchwelcome.

Note: See TracTickets for help on using tickets.