fix(popover): add modal property for dialogs

Fixes quirks with the context drawer and dialogs
This commit is contained in:
Michael Aaron Murphy 2024-04-11 20:44:58 +02:00 committed by Michael Murphy
parent c6ab6cfe23
commit 2bfdc09a43
2 changed files with 16 additions and 6 deletions

View file

@ -745,7 +745,7 @@ impl<App: Application> ApplicationExt for App {
// Show any current dialog on top and centered over the view content
// We have to use a popover even without a dialog to keep the tree from changing
let mut popover = popover(view_column);
let mut popover = popover(view_column).modal(true);
if let Some(dialog) = self.dialog() {
popover = popover.popup(dialog.map(Message::App));
}