-
Bug
-
Resolution: Fixed
-
Normal
-
8.0.5
-
None
-
Security Level: Jimmy
-
None
-
ZK 8.5.2 S1
-
None
Steps to Reproduce
1. visit the attached zul with iPad Safari
<doublebox/> <doublebox format="#,###,##0.00"/>
2. click the 2nd doublebox
Current Result
ipad pops up a normal virtual keypad instead of a numeric one.
Expected Result
ipad pops up a numeric keypad like clicking the first double (without format attribute specified).
Debug Info
1. if you click the first doublebox, iPad will pop up a numeric keyboard.
2. such issue also happens on firefox
3. <intbox>, <decimalbox> also have such issue, please also fix other similar components like <longbox>.
Root Cause
the rendered dom, input's type is text
<input id="bFHP1" class="z-doublebox" value="" type="text" size="11">
Workaround
<doublebox xmlns:ca="client/attribute" ca:pattern="[0-9]*" format="#,###,##0.00"/>
Ref:
https://www.smashingmagazine.com/2015/05/form-inputs-browser-support-issue/