Bug 1325922: [DateTimePicker] Add arrows svg file and style month-year button for date picker

This commit is contained in:
janekptacijarabaci 2018-02-14 13:38:47 +01:00 • committed by Roy Tam
commit a13a3afc1b
7 changed files with 101 additions and 20 deletions

View file

@ -218,6 +218,7 @@ function TimePicker(context) {
},
_attachEventListeners() {
window.addEventListener("message", this);
document.addEventListener("mousedown", this);
},
/**
@ -231,6 +232,12 @@ function TimePicker(context) {
this.handleMessage(event);
break;
}
case "mousedown": {
// Use preventDefault to keep focus on input boxes
event.preventDefault();
event.target.setCapture();
break;
}
}
},