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

Modified time doesn't update in a Datebox in Firefox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.6
    • 7.0.5
    • None
    • Security Level: Jimmy
    • Firefox 37, Safari 11.0.3

    • ZK 7.0.7

      Steps to reproduce

      1. load the zul below in firefox
        <datebox width="250px" format="medium+short"/>
        
      2. enter the time very fast and press enter immediately
        (See the video if you cannot reproduce)

      Actual Result

      The time string in Datebox is not consistent with the time in timebox.

      Debug Information

      The cause might relate to: onBlur is not fired in firefox when closing a popup.

      Because zul.db.Timebox.doBlur_() will update Datebox's value when closing a popup before onChanging happened.

      	doBlur_: function (evt) {
      		
      		if (!this._value && !this._changed && !Timebox._unformater)
      			this.getInputNode().value = this._defRawVal = '';
      
      		this.$supers('doBlur_', arguments);
      
      		zul.inp.RoundUtl.doBlur_(this);
      	},
      

      Run the zul below and follow the steps. You will find onBlur fired in Chrome, not fired in Firefox.

      <zk>
      <label multiline="true" popup="pp">
      1. click to open popup
      2. press enter at the textbox
      
      no onBlur fired in firefox 
      </label>
      <popup id="pp">
      <textbox onBlur="" onOK="self.parent.close()"></textbox>
      </popup>
      </zk>
      

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

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m