Skip to content

Commit 6e4b49a

Browse files
committed
change to standar check options
1 parent f8eb8b9 commit 6e4b49a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bottomsheet/bottomsheet.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
5151
},
5252

5353
onBackPressed(dialog: com.nativescript.material.bottomsheet.BottomSheetDialog) {
54-
if(options.dismissOnBackButton === false){
54+
if(bottomSheetOptions.options && bottomSheetOptions.options.dismissOnBackButton === false){
5555
return true;
5656
}
5757

0 commit comments

Comments
 (0)