Modal Dialog/Prompt Appears in Main Screen Instead of Popout Window #938
-
I’ve been encountering an issue with modal dialogs and prompts in popout windows. Whenever I’m in a popout mode and I click to open a modal dialog or prompt, it appears in the main screen rather than the popout window. This behavior is quite disruptive as it requires me to switch back and forth between the main screen and the popout window. I was wondering if anyone else has experienced this issue and if there are any known solutions or workarounds. Here’s a brief description of the issue: Open a popout window. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey, what APIs exactly are you using, could you try using the iTwinUI Dialog (make sure |
Beta Was this translation helpful? Give feedback.
Hey, what APIs exactly are you using, could you try using the iTwinUI Dialog (make sure
portal
prop is set totrue
or use theModal
dialog), it should automatically append itself to the correct document based on theportalContainer
of a wrappingThemeProvider
.Alternatively, if you are using UiFramework.dialogs.modal.open() it takes a
parentDocument?: Document
as a third argument. You could get a ref to one of the HTML elements in your widget and useownerDocument
to specify that arg.