输入类型=' tel'没有在iPad webapp上显示phonepad

时间:2016-02-24 00:57:38

标签: html ios ipad reactjs

<input id="cell-input" required onChange={this.handleChange} value={this.addDashes(this.state.phone)}
               name="cell" placeholder="012-345-6789" type="tel" autocomplete="off"
               autoFocus class="hairline text_400 field_type_a field_ph1" />

标记有点不同,因为它是与reactjs一起使用的反应模板。

按原样,这会打开数字小键盘而不是手机,但只适用于iOS(我实际上并没有iPhone进行测试,据我所知,可能仅适用于iPad)。我也试过添加类似&#34; \ d *&#34;这样的模式,但无济于事。我仍然只是得到数字键盘。

阅读本文,我认为它应适用于任何iOS - https://developer.apple.com/library/iad/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/InputTypes.html

有人有什么想法吗?

0 个答案:

没有答案
相关问题