Don't scroll away modal or lightbox

This commit is contained in:
Dan Abramov
2023-12-07 23:54:17 +00:00
parent 539e009bb8
commit 4112b02cd5
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -176,7 +176,8 @@ function LightboxInner({
const styles = StyleSheet.create({
mask: {
position: 'absolute',
// @ts-ignore
position: 'fixed',
top: 0,
left: 0,
width: '100%',
+2 -1
View File
@@ -159,7 +159,8 @@ function Modal({modal}: {modal: ModalIface}) {
const styles = StyleSheet.create({
mask: {
position: 'absolute',
// @ts-ignore
position: 'fixed',
top: 0,
left: 0,
width: '100%',