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

Decimalbox has no value in Germany-locale in mobile

XMLWordPrintable

      Steps to Reproduce

      <zk>
      	<zscript>
      	Sessions.getCurrent().setAttribute("px_preferred_locale", new Locale("de","DE"));
      	</zscript>
      	<div>Change browser locale to Germany for this test case.</div>
      	<div>You should see the values in each input element "0,5" not "5".</div>
      	<div>
      		<doublebox id="db1" value="0.5" constraint="no negative"/>
      		<doublespinner id="db2" value="0.5" constraint="no negative"/>
      		<decimalbox id="db3" value="0.5" constraint="no negative"/>
      	</div>
      </zk>
      

      Run in any mobile browser (for example, Android Chrome)

      Current Result

      No value in every textbox

      Expected Result

      "0,5" is presented

      Debug Information

      Only in mobile.
      No issue in the en-US locale.

      DevTools warning message: the specified value "0,5" cannot be parsed, or is out of range.

      Workaround

      Apply locale="de_DE" in each textbox instead.

            rudyhuang rudyhuang
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 4 hours Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - 4 hours Remaining Estimate - 4 hours
                4h