You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time a Dialog gets opened and then closed, a Detached <div> element (the Dialog.Content) gets detached but is never garbage collected, as if a reference was kept, preventing it. This represents a memory leak because opening and closing the dialog 20 times means 20 Detached Dialog.Content elements as long as their whole tree of children, which makes the memory usage grow.
Expected behavior
No reference should be held with the Dialog.Content element upon closing to allow proper garbage collection.
Bug report
Current Behavior
Every time a Dialog gets opened and then closed, a Detached
<div>
element (theDialog.Content
) gets detached but is never garbage collected, as if a reference was kept, preventing it. This represents a memory leak because opening and closing the dialog 20 times means 20 DetachedDialog.Content
elements as long as their whole tree of children, which makes the memory usage grow.Expected behavior
No reference should be held with the
Dialog.Content
element upon closing to allow proper garbage collection.Reproducible example
<div>
elements with therole=dialog
attribute get leaked (this is actually the Dialog.Content element)Suggested solution
Find which reference might not get removed when the dialog gets closed. I tried to search in the sources but am not able to notice anything.
Your environment
The text was updated successfully, but these errors were encountered: