Apply suggestion to frontend/src/utils/form/datepicker.js

This commit is contained in:
Sarah Vaupel 2019-11-14 13:16:46 +01:00
parent e661cb9f65
commit 999dd6b29b

View File

@ -193,7 +193,6 @@ export class Datepicker {
const targetIsOutside = !this.datepickerInstance.dt.contains(event.target);
const targetIsInDocument = window.document.contains(event.target);
const targetIsNotInput = event.target !== this._element;
console.log(targetIsOutside, targetIsInDocument, targetIsNotInput);
if (targetIsOutside && targetIsInDocument && targetIsNotInput)
this.datepickerInstance.close();
});