Browse Source

Fix btn mistype

master
morethanwords 3 years ago
parent
commit
c4512f205a
  1. 2
      src/components/popups/datePicker.ts

2
src/components/popups/datePicker.ts

@ -142,7 +142,7 @@ export default class PopupDatePicker extends PopupElement { @@ -142,7 +142,7 @@ export default class PopupDatePicker extends PopupElement {
this.timeDiv.append(this.hoursInputField.container, delimiter, this.minutesInputField.container);
attachClickEvent(this.btnClose, () => {
attachClickEvent(this.btnConfirm, () => {
if(this.onPick) {
this.selectedDate.setHours(+this.hoursInputField.value || 0, +this.minutesInputField.value || 0, 0, 0);
this.onPick(this.selectedDate.getTime() / 1000 | 0);

Loading…
Cancel
Save