From 3e275d763839cdaaeff96df9ee8b4633b5b39bdd Mon Sep 17 00:00:00 2001 From: OS-pedrogustavobilro Date: Mon, 16 Dec 2024 16:16:03 +0000 Subject: [PATCH] fix: Allow action sheet to be cancelable in web To be aligned with Android and iOS platforms --- camera/src/web.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camera/src/web.ts b/camera/src/web.ts index 10e7e3fad..9c9dfae53 100644 --- a/camera/src/web.ts +++ b/camera/src/web.ts @@ -23,7 +23,7 @@ export class CameraWeb extends WebPlugin implements CameraPlugin { document.body.appendChild(actionSheet); } actionSheet.header = options.promptLabelHeader || 'Photo'; - actionSheet.cancelable = false; + actionSheet.cancelable = true; actionSheet.options = [ { title: options.promptLabelPhoto || 'From Photos' }, { title: options.promptLabelPicture || 'Take Picture' },