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
Exception caught: Cannot set a new parent without first clearing the old parent #627
Comments
What specific GMD components you've used in order to reproduce this issue? Thanks in advance |
ApplicationView.ui.xml.gz Second time I click to show SystemSummaryView I get the exception. Probably the navigation side bar is causing the problem. You can see it in this video: |
I'm also using gwt-material-table 2.0-SNAPSHOT in my project |
@youncta-dev I think it's not the navigation side bar as it's not reattaching on your demo, the only thing that is reattaching is your content. |
As an info for you, I can state that the problem disappears if I use the following instead of SNAPSHOT:
|
With the new version, don't know why, some components started to act weirdly. For example, I was having the similar type of exception during the attachment and detachment of components, and in my case, the problematic component was MaterialWindow. So, I did a workaround solution as the following:
Inside the view constructor, I simply removed the component from the RootPanel if it's attached (because the error was saying "cannot add another parent while the old one is there")and added again to bypass the error. However, the workaround solution is for sure not elegant although it does the trick. So, you should find the right component for you which causes the problem. At least until a fix is released. |
I'm also had problem with MaterialWindow https://github.com/GwtMaterialDesign/gwt-material-addins/issues/229, but now this error not exist and i closed this issue. |
Ok I confirmed that I can reproduce this issue on Demo snapshot Window page. |
I'm using 2.0-SNAPSHOT in my project and since a few days I'm observing a nasty exception on Chrome developer console. I'm sure it was not happening on 21st of April but now it is popping up frequently.
How can I select a snapshot of a given day in the pom ?
This is the exception:
The text was updated successfully, but these errors were encountered: