onKeyPress(event) {
    if (event.which === 13) {
      event.preventDefault();
      this.handleSubmit(event);
    }
  }
// correctly submit form if enter is pressed
correctly submit form if enter is pressed
correctly submit form if enter is pressed
onKeyPress(event) {
    if (event.which === 13) {
      event.preventDefault();
      this.handleSubmit(event);
    }
  }
onKeyPress ( event ) { if ( event . which === 13 ) { event . preventDefault ( ) ; this . handleSubmit ( event ) ; } }
correctly submit form if enter is pressed
correctly submit form if enter is pressed