title: react | material ui | AutoComplete | how to assign id as a value in onNewRequest
body: <p>I have an <code>AutoComplete</code> component from <strong>material-ui</strong> library. There is a way to show it as select with <code>menuItem</code> components:</p>
  
  <pre><code>const dataSource = [
    {
      text: name1,
      value: &lt;MenuItem
        primaryText={name1}
        value={id1}
      /&gt;
    },
    {
      text: name2,
      value: &lt;MenuItem
        primaryText={name2}
        value={id2}
      /&gt;
    }
  ];
  </code></pre>
  
  <p>Everything looks nice, but doesn't work. First problem is, if I choose an element from list, it never appears as field value. I can see it in form field, but to backend is send only this string I manually entered into field. I found that one of passed properties could match my needs - <code>onNewRequest</code>. There are all data I need, but still cannot find, how to assign the id I can find in <code>chosenRequest</code> object, passed to this function, to field value.</p>