mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-09 16:57:30 +09:00
Bug 1325922: [DateTimePicker] Add arrows svg file and style month-year button for date picker
This commit is contained in:
parent
f4e1313a58
commit
a13a3afc1b
7 changed files with 101 additions and 20 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue