Steps to reproduce
- load the zul below in firefox
<datebox width="250px" format="medium+short"/>
- 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>