[RN] Fix input dialog value bug

This commit is contained in:
Bettenbuk Zoltan 2019-01-10 15:41:54 +01:00 committed by Zoltan Bettenbuk
parent 71563fec5b
commit c503187dc1
2 changed files with 3 additions and 3 deletions

View File

@ -73,7 +73,7 @@ class BaseDialog<P: Props, S: State> extends AbstractDialog<P, S> {
_onCancel: () => void; _onCancel: () => void;
_onSubmit: () => boolean; _onSubmit: ?string => boolean;
/** /**
* Renders the content of the dialog. * Renders the content of the dialog.

View File

@ -85,7 +85,7 @@ class InputDialog extends BaseDialog<Props, State> {
<View style = { brandedDialog.buttonWrapper }> <View style = { brandedDialog.buttonWrapper }>
<TouchableOpacity <TouchableOpacity
disabled = { okDisabled } disabled = { okDisabled }
onPress = { this._onSubmit } onPress = { this._onSubmitValue }
style = { [ style = { [
brandedDialog.button, brandedDialog.button,
brandedDialog.buttonFarLeft, brandedDialog.buttonFarLeft,
@ -116,7 +116,7 @@ class InputDialog extends BaseDialog<Props, State> {
}); });
} }
_onSubmit: ?string => boolean; _onSubmit: (?string) => boolean;
_onSubmitValue: () => boolean; _onSubmitValue: () => boolean;