Skip to content

Commit b0a24c1

Browse files
authored
fix: proper filter close on click (#801)
1 parent bc45918 commit b0a24c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unfold/templates/unfold/change_list_filter.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{% load i18n admin_list %}
22

33
<div id="changelist-filter" class="backdrop-blur-sm bg-opacity-80 bg-gray-900 flex fixed inset-0 z-50" x-show="filterOpen">
4-
<label for="show-filters" id="changelist-filter-close" class="flex-grow"></label>
4+
<label for="show-filters" id="changelist-filter-close" class="flex-grow" x-on:click="filterOpen = false"></label>
55

6-
<div class="bg-white flex mx-4 my-4 overflow-hidden rounded shadow-sm w-96 dark:bg-gray-800" x-on:click.outside="filterOpen = false">
6+
<div class="bg-white flex mx-4 my-4 overflow-hidden rounded shadow-sm w-96 dark:bg-gray-800">
77
<div class="flex-grow h-full overflow-auto relative">
88
<h3 class="border-b flex font-semibold mb-6 px-6 py-4 text-font-important-light text-sm dark:text-font-important-dark dark:border-gray-700">
99
{% trans "Filter" %}

0 commit comments

Comments
 (0)