pull/6245/head
Oliver Günther 7 years ago
parent 87db0017ca
commit a95047af19
No known key found for this signature in database
GPG Key ID: 88872239EB414F99
  1. 7
      frontend/app/components/wp-edit/op-date-picker/datepicker.ts

@ -80,7 +80,6 @@ export class DatePicker {
private hideDuringScroll() {
let reshowTimeout:any = null;
let scrollParent = this.datepickerCont.scrollParent();
let visibleAndActive = jQuery.proxy(this.visibleAndActive, this);
scrollParent.scroll(() => {
this.datepickerInstance.datepicker('hide');
@ -88,7 +87,11 @@ export class DatePicker {
clearTimeout(reshowTimeout);
}
reshowTimeout = setTimeout(() => this.datepickerInstance.datepicker('show'), 50);
reshowTimeout = setTimeout(() => {
if (this.visibleAndActive()) {
this.datepickerInstance.datepicker('show');
}
}, 50);
});
}

Loading…
Cancel
Save