Skip to content

EspoCRM – Open Source CRM Application

datepicker fix

Yuri Kuznetsovd75ff8782405
diff --git a/client/src/ui/app-init.js b/client/src/ui/app-init.js
index 14a6f6ccb1..aa6d382b9c 100644
--- a/client/src/ui/app-init.js
+++ b/client/src/ui/app-init.js
@@ -65,6 +65,10 @@ function uiAppInit() {
/** @type {HTMLElement} */
const dropdownElement = $dropdown.get(0);
+ if (!dropdownElement) {
+ return;
+ }
+
const height = $dropdown.outerHeight();
const width = $dropdown.outerWidth();