Skip to content

Commit

Permalink
Merge pull request #132 from Scille/backdrop-dismiss-option-on-ask-qu…
Browse files Browse the repository at this point in the history
…estion

Add backdropDismiss option on AskQuestion
  • Loading branch information
Ironicbay authored Aug 26, 2024
2 parents 3316662 + b9a7bd9 commit 6516278
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/components/ms-modal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface QuestionOptions {
noText?: Translatable;
keepMainModalHiddenOnYes?: boolean;
yesIsDangerous?: boolean;
backdropDismiss?: boolean;
}

export async function askQuestion(title: Translatable, subtitle: Translatable, options?: QuestionOptions): Promise<Answer> {
Expand All @@ -24,7 +25,7 @@ export async function askQuestion(title: Translatable, subtitle: Translatable, o
const modal = await modalController.create({
component: MsQuestionModal,
canDismiss: true,
backdropDismiss: false,
backdropDismiss: options?.backdropDismiss ?? false,
cssClass: 'question-modal',
componentProps: {
title: title,
Expand Down

0 comments on commit 6516278

Please sign in to comment.