Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix: avoid clicking behind dialogs

Bettenbuk Zoltan8dea3389eec0
diff --git a/react/features/base/dialog/components/native/BaseDialog.js b/react/features/base/dialog/components/native/BaseDialog.js
index 4bf23522e1..0a45a58076 100644
--- a/react/features/base/dialog/components/native/BaseDialog.js
+++ b/react/features/base/dialog/components/native/BaseDialog.js
@@ -4,6 +4,7 @@ import React from 'react';
import {
Text,
TouchableOpacity,
+ TouchableWithoutFeedback,
View
} from 'react-native';
@@ -51,28 +52,29 @@ class BaseDialog<P: Props, S: State> extends AbstractDialog<P, S> {
const { _dialogStyles, style } = this.props;
return (
- <View
- pointerEvents = 'box-none'
- style = { [
- styles.overlay,
- style
- ] }>
+ <TouchableWithoutFeedback>
<View
- pointerEvents = 'box-none'
style = { [
- _dialogStyles.dialog,
- this.props.style
+ styles.overlay,
+ style
] }>
- <TouchableOpacity
- onPress = { this._onCancel }
- style = { styles.closeWrapper }>
- <Icon
- name = 'close'
- style = { _dialogStyles.closeStyle } />
- </TouchableOpacity>
- { this._renderContent() }
+ <View
+ pointerEvents = 'box-none'
+ style = { [
+ _dialogStyles.dialog,
+ this.props.style
+ ] }>
+ <TouchableOpacity
+ onPress = { this._onCancel }
+ style = { styles.closeWrapper }>
+ <Icon
+ name = 'close'
+ style = { _dialogStyles.closeStyle } />
+ </TouchableOpacity>
+ { this._renderContent() }
+ </View>
</View>
- </View>
+ </TouchableWithoutFeedback>
);
}