Fix dropdown-menu close when click inside.

This commit is contained in:
邱博亞 2024-08-11 11:46:56 +08:00
parent 4663284a8e
commit 68cba0a1f7
2 changed files with 10 additions and 1 deletions

View File

@ -84,7 +84,7 @@
<div>{{total_entries}}</div>
<div>{{export_button}}</div>
{{pagination_goes_here}}
<script>
<script type="text/javascript">
$('.universal-table-index th').eq(1).attr('class', 'desktop tablet-l tablet-p');
$('.universal-table-index th').filter(':gt(1)').attr('class', 'desktop tablet-l tablet-p mobile-l');
$('.universal-table-index').each(function(){
@ -100,6 +100,9 @@
});
}
});
$(document).on('click', '.universal-table-index .dropdown-menu', function (e) {
e.stopPropagation();
});
</script>
<style>
.universal-table-index.dtr-inline.collapsed td.dtr-control{

View File

@ -91,3 +91,9 @@
<div>{{total_entries}}</div>
<div>{{export_button}}</div>
{{pagination_goes_here}}
<script type="text/javascript">
$(document).on('click', '.universal-table-index .dropdown-menu', function (e) {
e.stopPropagation();
});
</script>