0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Add missing type="button" in collections/_privacy_switch.html

This commit is contained in:
Sage Abdullah 2022-07-25 22:49:57 +07:00 committed by LB (Ben Johnston)
parent 18ad15a18f
commit 2961c90ae1

View File

@ -11,7 +11,7 @@
<div class="privacy-indicator {% if is_public %}public{% else %}private{% endif %}">
{% trans "Privacy" %}
<button data-a11y-dialog-show="set-privacy" class="status-tag primary">
<button type="button" data-a11y-dialog-show="set-privacy" class="status-tag primary">
{# labels are shown/hidden in CSS according to the 'private' / 'public' class on view-permission-indicator #}
<span class="label-public icon icon-view" aria-label="{% trans 'Set collection privacy. Current status: Public' %}">
{% trans "Public" %}