title: Multiple selected values of React material-ui Autocomplete?
body: <p>I'm using <strong>Material-ui Autocomplete</strong> in <a href="https://material-ui.com/components/autocomplete/#multiple-values" rel="nofollow noreferrer">multiple selection mode</a>. I want to get all the selected values on form submission. As per this <a href="https://stackoverflow.com/questions/58666189/getting-the-value-in-the-react-material-ui-autocomplete">Stackoverflow thread</a>, we can get individual value on onChange event handler, but I want  a simplified solution of getting all selected values on form-submission.
  Here is the mark-up of Autocomplete</p>
  <pre><code>&lt;Autocomplete
    multiple
    id=&quot;checkboxes-tags-demo&quot;
    options={devicesAndGroups}
    disableCloseOnSelect
    getOptionLabel={(option: any) =&gt; option.name}
    renderOption={(option, { selected }) =&gt; (
      &lt;React.Fragment&gt;
        &lt;Checkbox
          icon={icon}
          checkedIcon={checkedIcon}
          style={{ marginRight: 8 }}
          checked={selected}
        /&gt;
        {option.name}
      &lt;/React.Fragment&gt;
    )}
    style={{ width: &quot;100%&quot; }}
    renderInput={(params) =&gt; (
      &lt;TextField
        {...params}
        name=&quot;selectedDevices&quot;
        variant=&quot;outlined&quot;
        label=&quot;Devices/Groups&quot;
        placeholder=&quot;Devices&quot;
      /&gt;
    )}
  /&gt;;
  
  </code></pre>
  <p><strong>Is there any attribute of Autocomplete, to get all the selected values at any time?</strong></p>