<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">An <code class="notranslate">input</code> text field can have a <code class="notranslate">pattern</code> attribute containing a regex string, which the browser natively uses for validation (HTML5 spec).</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Currently, passing <code class="notranslate">pattern</code> to <code class="notranslate">TextField</code> does not transmit it to the underlying <code class="notranslate">input</code>, making native regex validation impossible.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/wy56937zy5" rel="nofollow">https://codesandbox.io/s/wy56937zy5</a></p>
<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.20</td>
</tr>
<tr>
<td>React</td>
<td>16.0.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
</tbody>
</table>
<p dir="auto">Setting the state in the callback of <code class="notranslate">onCheck</code> event cancels the [V] mark on the selected box.<br>
Without setting the state, the checkbox works as expected.</p>
<p dir="auto">Working fine</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Checkbox
                label=&quot;price&quot;
                onCheck={this._handleCBPrice.bind(this)} /&gt;
_handleCBPrice(event, checked){}"><pre class="notranslate"><code class="notranslate">&lt;Checkbox
                label="price"
                onCheck={this._handleCBPrice.bind(this)} /&gt;
_handleCBPrice(event, checked){}
</code></pre></div>
<p dir="auto">Doesn't mark the box with a [V]</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;Checkbox
                label=&quot;price&quot;
                onCheck={this._handleCBPrice.bind(this)} /&gt;

_handleCBPrice(event, checked){
     this.setState({someKey:someValue})
  }"><pre class="notranslate"><code class="notranslate">&lt;Checkbox
                label="price"
                onCheck={this._handleCBPrice.bind(this)} /&gt;

_handleCBPrice(event, checked){
     this.setState({someKey:someValue})
  }
</code></pre></div>