Skip to content

Commit

Permalink
Fix comment cancel button
Browse files Browse the repository at this point in the history
Add type="button" to avoid submitting the form by clicking on cancel, that's not what we want
  • Loading branch information
juffardm committed Dec 6, 2024
1 parent 9030050 commit f2b2c35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion incidents/templates/events/detail-all.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ <h4 id="addCommentLabel" class="modal-title">{% trans "Add comment" %}</h4>
</div>

<div class="modal-footer">
<button class="btn btn-default" data-bs-dismiss="modal" aria-hidden="true">{% trans "Cancel" %}</button>
<button type="button" class="btn btn-default" data-bs-dismiss="modal" aria-hidden="true">{% trans "Cancel" %}</button>
<button type="submit" class="btn btn-primary">{% trans "Save changes" %}</button>
</div>
</form>
Expand Down

0 comments on commit f2b2c35

Please sign in to comment.