title: How to hide "react-bootstrap modal" form that has preventDefault() inside its onSubmit?
body: <p>The problem is that when I do not use preventDefault(), page is reloaded onSubmit and hidden. When preventDefault is used my form is doing what it has in onSubmit, but it is not hiding after submit. When I use other "Close" button that has only  </p>
  
  <pre><code>onClick={this.props.onRequestHide}   
  </code></pre>
  
  <p>form is hiding just fine.</p>
  
  <p>How to hide that form when it is done with its onSubmit.</p>
  
  <pre><code>  &lt;Modal {...this.props} className="adressModal" bsStyle="primary" title='Adress Form' animation={false}&gt;
      &lt;form className="addressModal" onSubmit={this.handleSubmit} &gt;
        &lt;div className="modal-body"&gt;
          &lt;Input type="text" placeholder="Enter Kraj" className="form-control" valueLink={this.linkState('address')} ref="address" hasFeedback required/&gt;
        &lt;/div&gt;
        &lt;div className="modal-footer"&gt;
        &lt;ButtonGroup&gt;
          &lt;Button className="btn btn-default" onClick={this.props.onRequestHide} data-dismiss="modal" active&gt;Close&lt;/Button&gt;
          &lt;Button bsStyle="primary" className="btn btn-default" type="submit" disabled={this.state.isSubmitting} &gt;Save&lt;/Button&gt;
    &lt;/ButtonGroup&gt;
    &lt;/div&gt;
      &lt;/form&gt;
  &lt;/Modal&gt;
  </code></pre>
  
  <p>Code is just mix of ModalTrigger example from
      <a href="http://react-bootstrap.github.io/components.html#modals" rel="nofollow">http://react-bootstrap.github.io/components.html#modals</a>
  and React basic tutorial<br>
  <a href="http://facebook.github.io/react/docs/tutorial.html" rel="nofollow">http://facebook.github.io/react/docs/tutorial.html</a>.</p>