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
After displaying the tooltip, the resize event was not triggered, causing the window.removeEventListener to not be executed.
The removeEventListener will only execute and release memory altogether after the browser window size changes.
tooltip.js line:190 in tooltipActions()
...
window.addEventListener('resize', function onWindowResize() {
if (!utils.DomHandler.isTouchDevice()) {
$this.hide(el);
} window.removeEventListener('resize', onWindowResize); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
});
Reproducer
none
PrimeVue version
3.49.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome
Steps to reproduce the behavior
as described
Expected behavior
Execute removeEventListener at the appropriate time to avoid memory leaks.
The text was updated successfully, but these errors were encountered:
Due to this problem we cannot use tooltips. In many occasions this issue has caused our application to grind to a halt. What's worse is that it takes a while of runtime for the issue to become apparent.
tugcekucukoglu
added
Resolution: Duplicate
Issue has already been reported or a pull request related to same issue has already been submitted
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Feb 19, 2025
Describe the bug
After displaying the tooltip, the resize event was not triggered, causing the window.removeEventListener to not be executed.
The removeEventListener will only execute and release memory altogether after the browser window size changes.
tooltip.js line:190 in tooltipActions()
...
window.addEventListener('resize', function onWindowResize() {
if (!utils.DomHandler.isTouchDevice()) {
$this.hide(el);
}
window.removeEventListener('resize', onWindowResize);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
});
Reproducer
none
PrimeVue version
3.49.1
Vue version
3.x
Language
TypeScript
Build / Runtime
Vite
Browser(s)
Chrome
Steps to reproduce the behavior
as described
Expected behavior
Execute removeEventListener at the appropriate time to avoid memory leaks.
The text was updated successfully, but these errors were encountered: