Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3734

Doublebox with format attribute specified doesn't trigger a numeric keyboard in iPad

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.2
    • 8.0.5
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.5.2 S1

      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/

            klyvechen klyvechen
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified