diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index d30eb562feb..ab32b9658d2 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -8387,6 +8387,7 @@ class Form
@@ -8410,6 +8411,12 @@ class Form
// Now, we submit page
//$(this).parents(\'form:first\').submit();
});
+ $("input.inputsearch_dropdownselectedfields").on("keyup", function() {
+ var value = $(this).val().toLowerCase();
+ $(\'.multiselectcheckbox'.$htmlname.' li > label\').filter(function() {
+ $(this).parent().toggle($(this).text().toLowerCase().indexOf(value) > -1)
+ });
+ });
});
diff --git a/htdocs/core/js/lib_foot.js.php b/htdocs/core/js/lib_foot.js.php
index 9167e08e599..53ddabfce62 100644
--- a/htdocs/core/js/lib_foot.js.php
+++ b/htdocs/core/js/lib_foot.js.php
@@ -108,6 +108,7 @@ if (!defined('JS_JQUERY_DISABLE_DROPDOWN')) {
// Click onto the link "link to" or "hamburger", toggle dropdown
$(document).on(\'click\', \'.dropdown dt a\', function () {
console.log("toggle dropdown dt a");
+ setTimeout(() => { $(\'.inputsearch_dropdownselectedfields\').focus(); }, 200);
//$(this).parent().parent().find(\'dd ul\').slideToggle(\'fast\');
$(this).parent().parent().find(\'dd ul\').toggleClass("open");