Skip to content

Commit

Permalink
Merge pull request #4265 from sbwalker/dev
Browse files Browse the repository at this point in the history
fix #4246 - module message form exception when clicking close button
  • Loading branch information
sbwalker authored May 17, 2024
2 parents e1ac2b0 + 5c72e6d commit 747d0d0
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions Oqtane.Client/Modules/Controls/ModuleMessage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,7 @@
{
<NavLink class="ms-2" href="@NavigateUrl("admin/log")">View Details</NavLink>
}
<form method="post" @onsubmit="DismissModal" @formname="@_formname" data-enhance>
<input type="hidden" name="@Constants.RequestVerificationToken" value="@SiteState.AntiForgeryToken" />
<button type="submit" class="btn-close" aria-label="Close"></button>
</form>
<a href="@NavigationManager.Uri" class="btn-close" data-dismiss="alert" aria-label="close"></a>
}
</div>
}
Expand Down Expand Up @@ -82,9 +79,4 @@

return classname;
}

private void DismissModal()
{
Message = "";
}
}

0 comments on commit 747d0d0

Please sign in to comment.