[RN] Fix input dialog value bug
This commit is contained in:
parent
71563fec5b
commit
c503187dc1
|
@ -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.
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue