Skip to content

Commit

Permalink
fix: Allow action sheet to be cancelable in web
Browse files Browse the repository at this point in the history
To be aligned with Android and iOS platforms
  • Loading branch information
OS-pedrogustavobilro committed Dec 16, 2024
1 parent 123193b commit 3e275d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camera/src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down

0 comments on commit 3e275d7

Please sign in to comment.