Apply suggestion to frontend/src/utils/form/datepicker.js
This commit is contained in:
parent
d6305f5669
commit
85ae663d91
@ -182,7 +182,6 @@ export class Datepicker {
|
||||
|
||||
// close the instance on focusout of any element if the target is outside of the instance
|
||||
window.addEventListener('focusout', event => {
|
||||
console.log('focusout', event);
|
||||
const targetIsOutside = !this.datepickerInstance.dt.contains(event.explicitOriginalTarget);
|
||||
const targetIsNotTimepicker = !this.datepickerInstance.dt.contains(event.relatedTarget);
|
||||
console.log(targetIsOutside, targetIsNotTimepicker);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user