Allow tapping/clicking outside popup to close it

This commit is contained in:
Skylar Ittner 2019-06-08 23:14:20 -06:00
parent 67a64eb768
commit a2cba74aaa
2 changed files with 9 additions and 1 deletions

View File

@ -77,6 +77,14 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
background: rgba(0,0,0,0.75);
}
.popup-backdrop {
/*
We want the backdrop to exist to enable closing on tap,
but IMO it's better when it's totally transparent
*/
background: rgba(0,0,0,0);
}
#web-barcode-ui.hidden {
display: none;
}

View File

@ -21,7 +21,7 @@ var app = new Framework7({
swipeToClose: false
},
popup: {
backdrop: false
backdrop: true
},
init: true,
initOnDeviceReady: false,