Skip to content

Commit 3e275d7

Browse files
fix: Allow action sheet to be cancelable in web
To be aligned with Android and iOS platforms
1 parent 123193b commit 3e275d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

camera/src/web.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export class CameraWeb extends WebPlugin implements CameraPlugin {
2323
document.body.appendChild(actionSheet);
2424
}
2525
actionSheet.header = options.promptLabelHeader || 'Photo';
26-
actionSheet.cancelable = false;
26+
actionSheet.cancelable = true;
2727
actionSheet.options = [
2828
{ title: options.promptLabelPhoto || 'From Photos' },
2929
{ title: options.promptLabelPicture || 'Take Picture' },

0 commit comments

Comments
 (0)