Bug 1320225: [DateTimeInput] Integration of input type=date input box with picker (part 2)

This commit is contained in:
janekptacijarabaci 2018-02-14 14:45:58 +01:00 committed by Roy Tam
commit 753a28d239
4 changed files with 21 additions and 6 deletions

View file

@ -97,13 +97,10 @@ this.DateTimePickerHelper = {
// Called when picker value has changed, notify input box about it.
updateInputBoxValue: function(aEvent) {
// TODO: parse data based on input type.
const { hour, minute } = aEvent.detail;
debug("hour: " + hour + ", minute: " + minute);
let browser = this.weakBrowser ? this.weakBrowser.get() : null;
if (browser) {
browser.messageManager.sendAsyncMessage(
"FormDateTime:PickerValueChanged", { hour, minute });
"FormDateTime:PickerValueChanged", aEvent.detail);
}
},