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:
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: