From 976c14787bb21ddc792dc8670edba2e16301e3e0 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 21 Nov 2024 03:45:39 +0100 Subject: [PATCH] Update web_src/js/modules/fomantic/dropdown.ts --- web_src/js/modules/fomantic/dropdown.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/modules/fomantic/dropdown.ts b/web_src/js/modules/fomantic/dropdown.ts index c442e6c603..d8fb4d6e6e 100644 --- a/web_src/js/modules/fomantic/dropdown.ts +++ b/web_src/js/modules/fomantic/dropdown.ts @@ -75,7 +75,7 @@ function delegateOne($dropdown: any) { // the "template" functions are used for dynamic creation (eg: AJAX) const dropdownTemplates = {...dropdownCall('setting', 'templates'), t: performance.now()}; const dropdownTemplatesMenuOld = dropdownTemplates.menu; - dropdownTemplates.menu = function(response: any, fields: any, preserveHTML: any, className: string) { + dropdownTemplates.menu = function(response: any, fields: any, preserveHTML: any, className: Record) { // when the dropdown menu items are loaded from AJAX requests, the items are created dynamically const menuItems = dropdownTemplatesMenuOld(response, fields, preserveHTML, className); const div = document.createElement('div');