Skip to content

Commit

Permalink
Fix: Eligibility Index - Clicking on modal backdrop should not click …
Browse files Browse the repository at this point in the history
…radio button (#2207)
  • Loading branch information
machikoyasuda authored Jul 11, 2024
2 parents b0c716c + 2ba1812 commit 4ba3bc9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions benefits/eligibility/templates/eligibility/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,12 @@ <h1>{% translate "Choose the transit benefit you would like to enroll in" %}</h1

{% block inner-content %}
{% include "core/includes/form.html" with form=form %}
<script nonce="{{ request.csp_nonce }}">
$(".modal").on("click", function(event) {
if (!(event.target instanceof HTMLAnchorElement)) {
event.preventDefault();
event.stopPropagation();
}
});
</script>
{% endblock inner-content %}

0 comments on commit 4ba3bc9

Please sign in to comment.