Skip to content

Commit beef36e

Browse files
authored
Update click event delegation for split by feature button to ensure functionality after HTML replacement in setup_filters(). (#2906)
1 parent 7b4f062 commit beef36e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)