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. |
Replies: 1 comment 2 replies
|
Hey, what APIs exactly are you using, could you try using the iTwinUI Dialog (make sure |
Hey, what APIs exactly are you using, could you try using the iTwinUI Dialog (make sure
portalprop is set totrueor use theModaldialog), it should automatically append itself to the correct document based on theportalContainerof a wrappingThemeProvider.Alternatively, if you are using UiFramework.dialogs.modal.open() it takes a
parentDocument?: Documentas a third argument. You could get a ref to one of the HTML elements in your widget and useownerDocumentto specify that arg.