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

users can change a readonly timebox with buttons

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Major Major
    • None
    • 9.6.4
    • None
    • None

      Steps to Reproduce

          <zscript><![CDATA[
          import java.time.*;
          LocalTime now = LocalTime.now();
          ]]></zscript>
          <timebox valueInLocalTime="${now}" width="200px" readonly="true"/>
      

      1. click up or down arrow to change the time

      Current Result

      the time changed

      Expected Result

      since it's read-only, the component should not allow users to change the time

      Debug Information

      • timebox should either disable the buttons like disabled="true" (or hide the buttons).

      Workaround

      	zul.db.Timebox.prototype.setReadonly = function(readonly) {
      
      		this.$supers('setReadonly', arguments);
      		this.setButtonVisible(!readonly);
      	};
      

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: