From 13d295fcb1db863dee57679eb48c793922e39bfe Mon Sep 17 00:00:00 2001 From: Edoardo Cavazza Date: Thu, 11 Jul 2024 19:19:16 +0200 Subject: [PATCH] Fix filters initialization with DNA 3 --- webroot/js/CalendarFilters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/js/CalendarFilters.js b/webroot/js/CalendarFilters.js index 48cff2b..108e6e1 100644 --- a/webroot/js/CalendarFilters.js +++ b/webroot/js/CalendarFilters.js @@ -240,7 +240,7 @@ export function defineCalendarFilters(DNA) { DNA.define('calendar-filters', CalendarFilters, { extends: 'form', }); - } else { + } else if (DNA.customElements) { // DNA 3 customElements.define('calendar-filters', CalendarFilters, { extends: 'form',