Skip to content

Commit

Permalink
fix: fix select2 click
Browse files Browse the repository at this point in the history
  • Loading branch information
iosifnicolae2 authored Sep 25, 2024
1 parent 3cdf625 commit 8a1daca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/admin/change_list_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</td>
</tr>
{% endif %}
<tr class="{% cycle '' 'bg-gray-50 dark:bg-white/[.02]' %} block border mb-3 rounded-md shadow-sm lg:table-row lg:border-none lg:mb-0 lg:shadow-none dark:border-gray-800 hover:bg-gray-100 cursor-pointer" @click="if(!$event.target.matches('input') && !$event.target.matches('select')) window.location.href = '{{ result.instance_pk }}/change'">
<tr class="{% cycle '' 'bg-gray-50 dark:bg-white/[.02]' %} block border mb-3 rounded-md shadow-sm lg:table-row lg:border-none lg:mb-0 lg:shadow-none dark:border-gray-800 hover:bg-gray-100 cursor-pointer" @click="if(!$event.target.matches('input') && !$event.target.matches('select') && !$event.target.closest('.select2')) window.location.href = '{{ result.instance_pk }}/change'">
{% for item in result %}
{{ item }}
{% endfor %}
Expand Down

0 comments on commit 8a1daca

Please sign in to comment.