From dfd4cd6fcd7689878ef7354c6484fee36569af8c Mon Sep 17 00:00:00 2001 From: kodinkat Date: Wed, 8 Apr 2026 15:46:50 +0100 Subject: [PATCH] Update click event delegation for split by feature button to ensure functionality after HTML replacement in setup_filters(). --- dt-assets/js/modular-list.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dt-assets/js/modular-list.js b/dt-assets/js/modular-list.js index b8e4e92319..e7961fd3d3 100644 --- a/dt-assets/js/modular-list.js +++ b/dt-assets/js/modular-list.js @@ -3120,10 +3120,10 @@ } /** - * Split By Feature + * Split By Feature — delegate so clicks work after setup_filters() replaces + * #list-filter-tabs HTML (e.g. when get_filter_counts refreshes filter payload). */ - - $('#split_by_current_filter_button').on('click', function () { + $(document).on('click', '#split_by_current_filter_button', function () { refresh_split_by_view(); });