chore: close currently open modals/popovers when sharing text into sn

This commit is contained in:
Aman Harwara
2023-07-12 21:03:06 +05:30
parent a9378ab5d7
commit 6f18a73d94
4 changed files with 39 additions and 4 deletions

View File

@@ -21,6 +21,7 @@ import { Persistable } from './Abstract/Persistable'
import { CrossControllerEvent } from './CrossControllerEvent'
import { ItemListController } from './ItemList/ItemListController'
import { PaneLayout } from './PaneController/PaneLayout'
import { requestCloseAllOpenModalsAndPopovers } from '@/Utils/CloseOpenModalsAndPopovers'
export class SelectedItemsController
extends AbstractViewController
@@ -252,6 +253,10 @@ export class SelectedItemsController
if (!this.application.paneController.isInMobileView || userTriggered) {
void this.application.paneController.setPaneLayout(PaneLayout.Editing)
}
if (this.application.paneController.isInMobileView && userTriggered) {
requestCloseAllOpenModalsAndPopovers()
}
}
}