Application Crashes when trying to open the More Widget option from the Widget window.
Sometimes the application is crashing when trying to open the More Widget option from the Widget window as shown in the image
With the following error.
While other times the css appears to be broken.
https://github.com/user-attachments/assets/bcbeee4f-7aa8-4011-ba80-30e2bcb3fcf1
I can reproduce the broken css, but have not yet reproduced the crash. Hope to have a fix in tomorrow.
If you can provide a repo with a reproduction of the crash, I'll take a look at that as well.
https://github.com/iTwin/appui/issues/1372 might help with the "broken CSS" part (w/ some hints for the crash part as well). Need more details (used browser & React version is a good start) on how to repro https://react.dev/errors/185...
One idea to (potentially) address both of these issues is to replace the current Popup usage with iTwinUI Popover in the AppUI repo.
One idea to (potentially) address both of these issues is to replace the current
Popupusage with iTwinUIPopoverin the AppUI repo.
Yeah, using <ThemeManager> instead of <ThemeProvider> fixes the css issue.
@Praful-Bentley is this still relevant?
I'd say let's fix this at AppUI layer. One more reason to use iTwinUI Popover: https://github.com/iTwin/appui/issues/1458
One idea to (potentially) address both of these issues is to replace the current
Popupusage with iTwinUIPopoverin the AppUI repo.Yeah, using
<ThemeManager>instead of<ThemeProvider>fixes the css issue.
On using the ThemeManager and using those expand icon, application crashed with a react setState error.
On using the ThemeManager and using those expand icon, application crashed with a react setState error.
Ah, I meant using it in the viewer package. Once the above PR is through we can update the Viewer.
@Praful-Bentley please update these dependencies in your viewer app to 5.19.0 and let us know if the problem persists:
@itwin/appui-react
@itwin/components-react
@itwin/core-react
@itwin/imodel-components-react