title: How to submit the form by Material UI Dialog using ReactJS
body: <p>I used the Material UI Dialog to make a form list. In the official case:</p>
  
  <pre><code>&lt;Dialog
            title="Dialog With Custom Width"
            actions={actions}
            modal={true}
            open={this.state.open}
          &gt;
            This dialog spans the entire width of the screen.
  &lt;/Dialog&gt;
  </code></pre>
  
  <p>the actions is :</p>
  
  <pre><code>   const actions = [
        &lt;FlatButton
          label="Cancel"
          primary={true}
          onTouchTap={this.handleClose}
        /&gt;,
        &lt;FlatButton
          label="Submit"
          primary={true}
          onTouchTap={this.handleClose}
        /&gt;,
      ];
  </code></pre>
  
  <p>How can I build a form and let Dialog can submit my form data?</p>
  
  <p>------------------------------------------------UPDATE-----------------------------------------------</p>
  
  <p>There is another answer:</p>
  
  <p>Add the attribute of <code>type</code> and <code>form</code> in the Dialog actions button:</p>
  
  <pre><code>const actions = [
        &lt;FlatButton
          label="Cancel"
          primary={true}
          onTouchTap={this.handleClose}
        /&gt;,
        &lt;FlatButton
          label="Submit"
          primary={true}
          onTouchTap={this.handleClose}
          type="submit"        //set the buttom type is submit
          form="myform"        //target the form which you want to sent 
        /&gt;,
      ];
  </code></pre>
  
  <p>and give attribute id to the form in the dialog:</p>
  
  <pre><code>&lt;Dialog
            title="Dialog With Custom Width"
            actions={actions}
            modal={true}
            open={this.state.open}
          &gt;
          // here can put child component and the code still work even the form is in the child component
           &lt;div className="deal_form"&gt;
            &lt;form id="myform" onSubmit = {this.handleCreate} &gt;
              &lt;TextField value={this.state.staff_number} /&gt;
            &lt;/form&gt;
          &lt;/div&gt;
  &lt;/Dialog&gt;
  </code></pre>