It seems that the date and time related form items don't handle saveOnEnter properly. The value returned by getValue while executing submit handler is outdated.
Here's the minimal code, tested on the Smart Client showcase: https://www.smartclient.com/smartcli...e/?id=timeItem
To reproduce:
1. Type in time (e.g. 12:00)
2. Hit enter -> "Time: null"
3. Close dialog window
3. Hit enter -> "Time: Thu Jan 01 1970 12:00:00 GMT+0100"
Value returned in step 2 and 4 should be the same. It works when between 1 and 2 I leave text field, making it lose focus.
Here's the minimal code, tested on the Smart Client showcase: https://www.smartclient.com/smartcli...e/?id=timeItem
Code:
isc.DynamicForm.create({ saveOnEnter: true, submit: function () { var time = this.getItem("textTime").getValue(); isc.say("Time: " + time); }, fields: [ {name: "textTime", title: "Time", type: "time"} ] });
1. Type in time (e.g. 12:00)
2. Hit enter -> "Time: null"
3. Close dialog window
3. Hit enter -> "Time: Thu Jan 01 1970 12:00:00 GMT+0100"
Value returned in step 2 and 4 should be the same. It works when between 1 and 2 I leave text field, making it lose focus.
Comment