Apply suggestion to frontend/src/utils/form/datepicker.js
This commit is contained in:
parent
e661cb9f65
commit
999dd6b29b
@ -193,7 +193,6 @@ export class Datepicker {
|
|||||||
const targetIsOutside = !this.datepickerInstance.dt.contains(event.target);
|
const targetIsOutside = !this.datepickerInstance.dt.contains(event.target);
|
||||||
const targetIsInDocument = window.document.contains(event.target);
|
const targetIsInDocument = window.document.contains(event.target);
|
||||||
const targetIsNotInput = event.target !== this._element;
|
const targetIsNotInput = event.target !== this._element;
|
||||||
console.log(targetIsOutside, targetIsInDocument, targetIsNotInput);
|
|
||||||
if (targetIsOutside && targetIsInDocument && targetIsNotInput)
|
if (targetIsOutside && targetIsInDocument && targetIsNotInput)
|
||||||
this.datepickerInstance.close();
|
this.datepickerInstance.close();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user