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

Decimalbox has no value in Germany-locale in mobile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.5.8.1, 9.5.0.2
    • Fix Version/s: None
    • Component/s: Components
    • Environment:

      Chrome 88.0.4324.93 / Android 7.1.2

      Description

      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" or "0,0000000000...5" is presented

      Debug Information

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

      Workaround

      Apply locale="de_DE" in each textbox instead.

        Attachments

          Activity

            People

            Assignee:
            rudyhuang rudyhuang
            Reporter:
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: