Skip to content

Commit

Permalink
fix(modal-trigger): prevent duplicate ID issue
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Sep 6, 2023
1 parent 528c51f commit 0cc50b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benefits/core/templates/core/includes/modal-trigger.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- Inline link to trigger modal -->
{# djlint:off #}
<a href="#{{ modal }}" class="{{ classes }}" id="{{ id }}" data-bs-toggle="modal" data-bs-target="#{{ modal }}">{{ text }}{% if login %}<span class="fallback-text color-logo">Login.gov</span>{% endif %}</a>{% if period %}.{% endif %}
<a href="#{{ modal }}" class="{{ classes }}" id="{{ triggerId }}" data-bs-toggle="modal" data-bs-target="#{{ modal }}">{{ text }}{% if login %}<span class="fallback-text color-logo">Login.gov</span>{% endif %}</a>{% if period %}.{% endif %}
{# djlint:on #}

0 comments on commit 0cc50b6

Please sign in to comment.