Skip to content

Commit dfd4cd6

Browse files
committed
Update click event delegation for split by feature button to ensure functionality after HTML replacement in setup_filters().
1 parent d40c7d4 commit dfd4cd6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dt-assets/js/modular-list.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3120,10 +3120,10 @@
31203120
}
31213121

31223122
/**
3123-
* Split By Feature
3123+
* Split By Feature — delegate so clicks work after setup_filters() replaces
3124+
* #list-filter-tabs HTML (e.g. when get_filter_counts refreshes filter payload).
31243125
*/
3125-
3126-
$('#split_by_current_filter_button').on('click', function () {
3126+
$(document).on('click', '#split_by_current_filter_button', function () {
31273127
refresh_split_by_view();
31283128
});
31293129

0 commit comments

Comments
 (0)