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

Issue on timebox with null value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.11, 6.0.2, 6.5.0
    • Fix Version/s: 6.5.0, 6.0.3, 5.0.12
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:

      Description

      This is my test code: (Tested on zk sandbox as well)

      <zk>
      <zscript>
      
      Date d = new Date();
      
      public void setValueForDatebox() {
          d = null;
          tm.setValue(d);
      }
      </zscript>
      
      <button label="Date to null" onClick="setValueForDatebox()"/>
      
      <timebox id="tm" value="${d}"/>
      
      </zk>
      

      Test scenario 1: (Working ok)
      Click on button "Date to null" -> timebox goes blank. Perfect!

      Test scenario 2:
      Refresh the page
      Click on the timebox and modify the time on the screen.
      Click on the button, setting value to null -> timebox shows 00:00, it should go blank!

      Best Regards.

        Attachments

          Activity

            People

            Assignee:
            vincentjian vincentjian
            Reporter:
            manuelmoreno manuelmoreno
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: