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
Hey,
After receiving several complaints that our web application keeps hanging up after some time, we also started looking for the cause and came across v-dialog.
Thanks to @peter-gy and his bug report #18880. By reading his comments I was able to try out the approach he proposed to solve an similar issue. 🎉
I used function getEventListeners(document) in the developer console of Chrome to find out if there is an event listener that is not removed after closing the dialog. I was able to find out that the event listener for the focusin event is not removed cleanly and I am now quite sure that this is the cause of the memory leak.
I tried to locally edit the VDialog.mjs to resolve the issue. The event listener is added here:
Hi @lebinhchieu ,
one thing that may helps you in the meantime is to set the property retain-focus of the v-dialog to false in your code: :retain-focus="false". If you do not need retain-focus to be set to true it may works as a workaround for you.
Environment
Vuetify Version: 3.7.1
Vue Version: 3.5.0
Browsers: Google Chrome
OS: Windows
Steps to reproduce
TestObject
=> Nothing showsOverlay
orData Table
link (both pages create aTestObject
instance)Back to home
button in theOverlay
orData Table
link to back to homeTestObject
=> a record showsExpected Behavior
TestObject
should be removedActual Behavior
TestObject
is still there after backing to homeReproduction Link
https://github.com/lebinhchieu/vuetify-memory-issue
The text was updated successfully, but these errors were encountered: