diff --git a/src/common/Input/Input.js b/src/common/Input/Input.js index 2ed378eee..7af6ae165 100644 --- a/src/common/Input/Input.js +++ b/src/common/Input/Input.js @@ -22,8 +22,14 @@ class Input extends PureComponent { this.props.onKeyUp(event); } - if (!event.defaultPrevented && BUTTON_INPUT_TYPES.includes(this.props.type) && event.which === ENTER_KEY_CODE) { - event.currentTarget.click(); + if (!event.defaultPrevented && event.which === ENTER_KEY_CODE) { + if (BUTTON_INPUT_TYPES.includes(this.props.type)) { + event.currentTarget.click(); + } else if (TEXT_INPUT_TYPES.includes(this.props.type)) { + if (typeof this.props.onSubmit === 'function') { + this.props.onSubmit(event); + } + } } } diff --git a/src/routes/Intro/Intro.js b/src/routes/Intro/Intro.js index d44085bde..969b74c4e 100644 --- a/src/routes/Intro/Intro.js +++ b/src/routes/Intro/Intro.js @@ -189,20 +189,14 @@ class Intro extends Component {
Login with Facebook
We won't post anything on your behalf
-
- -
-
- -
+ + { this.state.selectedForm === FORMS.LOGIN ? Forgot password? : -
- -
+