fix(@desktop/general): clicking anywhere outside a modal dialog should close it

Fixes: #9702
This commit is contained in:
Sale Djenic 2023-03-24 10:39:44 +01:00 committed by saledjenic
parent cab6af212f
commit 52bb597106
3 changed files with 4 additions and 2 deletions

View File

@ -62,7 +62,8 @@ StatusModal {
width: 480
height: 546
closePolicy: Popup.NoAutoClose
closePolicy: submitBtn.loading? Popup.NoAutoClose : Popup.CloseOnEscape | Popup.CloseOnPressOutside
hasCloseButton: !submitBtn.loading
header.title: qsTr("Change password")
onOpened: view.reset()

View File

@ -15,6 +15,7 @@ StatusModal {
height: 248
closePolicy: Popup.NoAutoClose
hasCloseButton: false
showHeader: false
contentItem: ColumnLayout {

View File

@ -13,7 +13,7 @@ StatusModal {
property var emojiPopup
width: Constants.keycard.general.popupWidth
closePolicy: d.disableActionPopupButtons || d.disableCloseButton? Popup.NoAutoClose : Popup.CloseOnEscape
closePolicy: d.disableActionPopupButtons || d.disableCloseButton? Popup.NoAutoClose : Popup.CloseOnEscape | Popup.CloseOnPressOutside
hasCloseButton: !d.disableActionPopupButtons && !d.disableCloseButton
header.title: {