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

datebox throws a js error with locale specified

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 9.6.1
    • Fix Version/s: 9.6.3
    • Component/s: None
    • Security Level: Jimmy
    • Labels:

      Description

      Steps to Reproduce

      1. run the zul with chrome device simulator > iPad Mini (or firefox device simulator)
      2. click datebox calendar icon to open the popup

      Another steps to reproduce

      1. run the zul with chrome or firefox
      2. click the button to set the constraint

      Current Result

      chrome

      Uncaught TypeError: Cannot read properties of undefined (reading '_moment')
      at init.$init (zul.db.wpd:606:73)
      at new init (zk.wpd:11127:18)
      at init.open (zk.wpd:55476:12)
      at init.open (za11y.wpd:863:25)
      at init.setOpen (zul.db.wpd:3415:19)
      at init._doBtnClick (zul.db.wpd:3565:9)
      at HTMLAnchorElement.<anonymous> (zk.wpd:21692:19)
      at HTMLAnchorElement.dispatch (zk.wpd:5617:27)
      at HTMLAnchorElement.elemData.handle (zk.wpd:5421:28)

      Firefox

      Uncaught TypeError: date is undefined
      $init http://localhost:8080/zk9support/zkau/web/_zv2021083012/js/zul.db.wpd:606
      init http://localhost:8080/zk9support/zkau/web/5f1168a0/js/zk.wpd:11127
      open http://localhost:8080/zk9support/zkau/web/5f1168a0/js/zk.wpd:55476
      open http://localhost:8080/zk9support/zkau/web/5f1168a0/js/za11y.wpd:863
      setOpen http://localhost:8080/zk9support/zkau/web/_zv2021083012/js/zul.db.wpd:3415
      _doBtnClick http://localhost:8080/zk9support/zkau/web/_zv2021083012/js/zul.db.wpd:3565
      _domEvtProxy0 http://localhost:8080/zk9support/zkau/web/5f1168a0/js/zk.wpd:21692
      dispatch http://localhost:8080/zk9support/zkau/web/5f1168a0/js/zk.wpd:5617
      handle http://localhost:8080/zk9support/zkau/web/5f1168a0/js/zk.wpd:5421

      Expected Result

      no error

      Debug Info

      • 9.5.0 doesn't have this bug
      • caused by ZK-4745

      Workaround

      zk-5148.js

        Attachments

        1. zk-5148.js
          0.8 kB
        2. zk-5148.zul
          0.2 kB

          Activity

            People

            Assignee:
            jumperchen jumperchen
            Reporter:
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: