-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
I noticed that memory was leaking while switching back and forth between pages that included the datepicker. The DOM Node Count in Google Chrome kept going up.
I solved it by including the following snippet before returning from the link function:
$scope.$on('$destroy', function() {
if(input.data("DateTimePicker")) {
input.data("DateTimePicker").destroy();
}
element.off("change.dp");
});
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels