From a43d829de8826ce0f07b5e15edff231f5cdc5bff Mon Sep 17 00:00:00 2001 From: Giteabot Date: Tue, 17 Jun 2025 22:34:14 +0800 Subject: [PATCH] Fix JS error for "select" dropdown (#34743) (#34749) Backport #34743 by wxiaoguang Regression of recent dropdown filter change. Co-authored-by: wxiaoguang --- web_src/js/modules/fomantic/dropdown.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web_src/js/modules/fomantic/dropdown.ts b/web_src/js/modules/fomantic/dropdown.ts index 0360b8ef95..02fee5a267 100644 --- a/web_src/js/modules/fomantic/dropdown.ts +++ b/web_src/js/modules/fomantic/dropdown.ts @@ -72,10 +72,10 @@ function updateSelectionLabel(label: HTMLElement) { } function onAfterFiltered(this: any) { - const $dropdown = $(this); + const $dropdown = $(this).closest('.ui.dropdown'); // "this" can be the "ui dropdown" or "