Skip to content

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

[RN] Fix input dialog value bug

Bettenbuk Zoltanc503187dc12a
diff --git a/react/features/base/dialog/components/native/BaseDialog.js b/react/features/base/dialog/components/native/BaseDialog.js
index d5d01498a8..2657a1d9ce 100644
--- a/react/features/base/dialog/components/native/BaseDialog.js
+++ b/react/features/base/dialog/components/native/BaseDialog.js
@@ -73,7 +73,7 @@ class BaseDialog<P: Props, S: State> extends AbstractDialog<P, S> {
_onCancel: () => void;
- _onSubmit: () => boolean;
+ _onSubmit: ?string => boolean;
/**
* Renders the content of the dialog.
diff --git a/react/features/base/dialog/components/native/InputDialog.js b/react/features/base/dialog/components/native/InputDialog.js
index 9ed9ea6608..e502335805 100644
--- a/react/features/base/dialog/components/native/InputDialog.js
+++ b/react/features/base/dialog/components/native/InputDialog.js
@@ -85,7 +85,7 @@ class InputDialog extends BaseDialog<Props, State> {
<View style = { brandedDialog.buttonWrapper }>
<TouchableOpacity
disabled = { okDisabled }
- onPress = { this._onSubmit }
+ onPress = { this._onSubmitValue }
style = { [
brandedDialog.button,
brandedDialog.buttonFarLeft,
@@ -116,7 +116,7 @@ class InputDialog extends BaseDialog<Props, State> {
});
}
- _onSubmit: ?string => boolean;
+ _onSubmit: (?string) => boolean;
_onSubmitValue: () => boolean;