Skip to content

Commit 44b92e6

Browse files
authored
fix: django-constance form fields tabindex (#1450)
1 parent 0fd04ff commit 44b92e6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/unfold/contrib/constance/templates/admin/constance/includes/results_list.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737

3838
<td>
39-
<a class="item-name item-anchor" href="#{{ item.name|slugify }}" id="{{ item.name|slugify }}" title="Link to this setting">
39+
<a class="item-name item-anchor" href="#{{ item.name|slugify }}" tabindex="-1" id="{{ item.name|slugify }}" title="Link to this setting">
4040
{% include "unfold/helpers/label.html" with text=item.name type="info" %}
4141
</a>
4242
</td>
@@ -56,6 +56,7 @@
5656
<td class="w-px">
5757
{% if not item.is_file %}
5858
<a href="#"
59+
tabindex="-1"
5960
class="flex items-center gap-1 reset-link whitespace-nowrap"
6061
data-default="{% spaceless %}{% if item.is_checkbox %}{% if item.raw_default %} true {% else %} false {% endif %}{% elif item.is_date %}{{ item.raw_default|date:"U" }}{% elif item.is_datetime %}{{ item.raw_default|date:"U" }}{% else %}{{ item.default }}{% endif %}{% endspaceless %}"
6162
data-field-type="{% spaceless %}{% if item.is_checkbox %}checkbox{% elif item.is_datetime %}datetime{% elif item.is_date %}date{% endif %}{% endspaceless %}"

0 commit comments

Comments
 (0)