maxlength not working with input type="number" ionic
<p>I try to define maxlength of a number input. </p>

<pre><code> &lt;label class="item item-input"&gt;
 &lt;i class="icon ion-android-call placeholder-icon"&gt;&lt;/i&gt;
 &lt;input type="number"  placeholder="Phone number " maxlength="8"&gt;
 &lt;/label&gt;
</code></pre>

<p>How can i reesolve it please.</p>