-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Registered event handlers are not removed when closing a panel #53
Comments
@Flyer53
|
@akstek However, there is no excuse and I have to take care of that. Just give me some time, I'm on vacation currently 😄. I'm back in about 10 days and then I'll start looking into this issue. Regards, |
In our case we use all the time the same pre generated IDs for the panels that run in a scaled container (not the body) an so it affects us. But it is not realy urgent as we wrote a plugin which hides the panels on close and does not remove them from the dom. But we have still some panels left which are removed from the dom and as we use a single page app that nearley never gets reloaded the list of this unremoved handlers is getting bigger. But as alyways thank you for your fast response. Maybe you can also take a look at our patched version of jspanel which solves the scaling problem. |
I'm seeing the same issue for a parent container (not 'body'). |
@harsh00008 |
@akstek @harsh00008 |
@Flyer53 I also noticed this issue, under the same circumstances of having a non-body container with jspanels sharing the same id being destroyed and recreated. I submitted PR #55 that fixes the issue by moving those 3 event handlers into variables on self, then calling document.removeEventListener after cleanup in self.close(). Enjoy the rest of your vacation! |
Ok folks, I seem to have found a fix for this. Would you please check out the attached file and let me know how it works out. In the end it was quite easy: The internally needed handlers for Other changes in the modified file:
|
@Flyer53 |
Issue fixed with v4.2.1 |
Registered event handlers are not removed when closing a panel. This causes errors when creating a new window with a (custom) id that has already been used inside a container (not the body!)
The text was updated successfully, but these errors were encountered: