<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>

<p dir="auto">Simulating click on a mounted switch control should call onChange</p>
<h2 dir="auto">Current Behavior</h2>

<p dir="auto">onChange isn't called.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Toggle extends React.Component&lt;ToggleProps&gt; {
  private toggleChange = (event, checked) =&gt; {
    this.props.field.visible = checked;
  }

  render() {
    const value = this.props.field.visible ? 'on' : 'off';
    return (
      &lt;div data-hook=&quot;toggle&quot;&gt;
        &lt;Switch
           value={value}
          checked={this.props.field.visible}
          onChange={this.toggleChange}
        /&gt;
      &lt;/div&gt;
    );
  }
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Toggle</span> <span class="pl-k">extends</span> <span class="pl-smi">React</span><span class="pl-kos">.</span><span class="pl-c1">Component</span><span class="pl-kos">&lt;</span><span class="pl-smi">ToggleProps</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span>
  <span class="pl-k">private</span> <span class="pl-c1">toggleChange</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">,</span> <span class="pl-s1">checked</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
    <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">field</span><span class="pl-kos">.</span><span class="pl-c1">visible</span> <span class="pl-c1">=</span> <span class="pl-s1">checked</span><span class="pl-kos">;</span>
  <span class="pl-kos">}</span>

  <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
    <span class="pl-k">const</span> <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">field</span><span class="pl-kos">.</span><span class="pl-c1">visible</span> ? <span class="pl-s">'on'</span> : <span class="pl-s">'off'</span><span class="pl-kos">;</span>
    <span class="pl-k">return</span> <span class="pl-kos">(</span>
      <span class="pl-c1">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">data-hook</span><span class="pl-c1">=</span><span class="pl-s">"toggle"</span><span class="pl-c1">&gt;</span>
        <span class="pl-c1">&lt;</span><span class="pl-smi">Switch</span>
           <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">value</span><span class="pl-kos">}</span>
          <span class="pl-c1">checked</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">field</span><span class="pl-kos">.</span><span class="pl-c1">visible</span><span class="pl-kos">}</span>
          <span class="pl-c1">onChange</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">toggleChange</span><span class="pl-kos">}</span>
        <span class="pl-c1">/</span><span class="pl-c1">&gt;</span>
      <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span>
    <span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">test:</p>
<div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="wrapper = mount(&lt;Toggle field={this.field}/&gt;, {attachTo: document.createElement('div')});
input = () =&gt; wrapper.find('input')
on = () =&gt; input().props().value === 'on'

// these options do nothing
wrapper.simulate('click')
input().simulate('click')"><pre class="notranslate"><span class="pl-s1">wrapper</span> <span class="pl-c1">=</span> <span class="pl-en">mount</span><span class="pl-kos">(</span><span class="pl-c1">&lt;</span><span class="pl-smi">Toggle</span> <span class="pl-c1">field</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">field</span><span class="pl-kos">}</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-c1">attachTo</span>: <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'div'</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">input</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-s1">wrapper</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">'input'</span><span class="pl-kos">)</span>
<span class="pl-en">on</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-en">input</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">props</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">value</span> <span class="pl-c1">===</span> <span class="pl-s">'on'</span>

<span class="pl-c">// these options do nothing</span>
<span class="pl-s1">wrapper</span><span class="pl-kos">.</span><span class="pl-en">simulate</span><span class="pl-kos">(</span><span class="pl-s">'click'</span><span class="pl-kos">)</span>
<span class="pl-en">input</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">simulate</span><span class="pl-kos">(</span><span class="pl-s">'click'</span><span class="pl-kos">)</span></pre></div>
<div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// also tried this which throws
input().props().onChange()

TypeError: Cannot read property 'target' of undefined
      at Object.SwitchBase._this.handleInputChange [as onChange] (node_modules/material-ui/internal/SwitchBase.js:115:27)"><pre class="notranslate"><span class="pl-c">// also tried this which throws</span>
<span class="pl-en">input</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">props</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">onChange</span><span class="pl-kos">(</span><span class="pl-kos">)</span>

TypeError: <span class="pl-smi">Cannot</span> <span class="pl-s1">read</span> <span class="pl-s1">property</span> <span class="pl-s">'target'</span> <span class="pl-k">of</span> <span class="pl-c1">undefined</span>
      <span class="pl-s1">at</span> <span class="pl-smi">Object</span><span class="pl-kos">.</span><span class="pl-c1">SwitchBase</span><span class="pl-kos">.</span><span class="pl-c1">_this</span><span class="pl-kos">.</span><span class="pl-c1">handleInputChange</span> <span class="pl-kos">[</span><span class="pl-s1">as</span> <span class="pl-s1">onChange</span><span class="pl-kos">]</span> <span class="pl-kos">(</span><span class="pl-s1">node_modules</span><span class="pl-c1">/</span><span class="pl-s1">material</span><span class="pl-c1">-</span><span class="pl-s1">ui</span><span class="pl-c1">/</span><span class="pl-s1">internal</span><span class="pl-c1">/</span><span class="pl-smi">SwitchBase</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">115</span>:<span class="pl-c1">27</span><span class="pl-kos">)</span></pre></div>
<h2 dir="auto">Context</h2>

<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.27</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>Enzyme</td>
<td>3.3.0</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
<tr>
<td>etc</td>
<td>mac</td>
</tr>
</tbody>
</table>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">In the documentation for the <code class="notranslate">Select</code> component when using the <code class="notranslate">multi</code> option a check mark appears next to the selected item.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The selected text appears red, but the check mark does not appear.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li><a href="https://codesandbox.io/s/014ooql7zw" rel="nofollow">Codesandbox link</a></li>
</ol>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>0.19.4</td>
</tr>
<tr>
<td>React</td>
<td>16.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 61.0.3163.100</td>
</tr>
</tbody>
</table>