Opened 6 years ago

Last modified 3 years ago

#17102 new defect

Leak in dojox/widget/_CalendarBase

Reported by: adros Owned by: dante
Priority: undecided Milestone: 1.15
Component: DojoX Widgets Version: 1.9.0
Keywords: Cc:
Blocked By: Blocking:

Description

Instance of '_CalendarBase' is destroyed and recreated again on each 'openDropDown' call. But sub-widgets (views) created by _CalendarBase's postCreate method are not destroyed correctly. So the number of widgets in registry rises with each dropdown opening.

Possible solution is to own the created subwidgets in _CalendarBase's 'postCreate' method using 'this.own(widget)'. Or other solution could be replacing this code in dijit/form/_DateTimeTextBox's 'openDropDown' method:

if(this.dropDown){
    this.dropDown.destroy();
}

for:

if(this.dropDown){
    this.dropDown.destroyRecursive();
}

Change History (2)

comment:1 Changed 4 years ago by dylan

Milestone: tbd1.12

Will consider for 1.12.

comment:2 Changed 3 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.