remove data-enhance from Edit Mode button as it prevents the module actions menu from functioning

This commit is contained in:
sbwalker 2024-02-26 10:56:51 -05:00
parent c110611d82
commit ed9121a06f
3 changed files with 2 additions and 3 deletions

View File

@ -10,7 +10,7 @@
@if (_showEditMode || (PageState.Page.IsPersonalizable && PageState.User != null && UserSecurity.IsAuthorized(PageState.User, RoleNames.Registered)))
{
<form method="post" class="app-form-inline" @formname="EditModeForm" @onsubmit="@(async () => await ToggleEditMode(PageState.EditMode))" data-enhance>
<form method="post" class="app-form-inline" @formname="EditModeForm" @onsubmit="@(async () => await ToggleEditMode(PageState.EditMode))">
<input type="hidden" name="__RequestVerificationToken" value="@SiteState.AntiForgeryToken" />
@if (PageState.EditMode)
{

View File

@ -10,7 +10,7 @@
{
@if (ModuleType != null)
{
@((MarkupString)$"<!-- Render Mode: {ModuleState.RenderMode} -->")
@((MarkupString)$"<!-- rendermode: {ModuleState.RenderMode} -->")
<ModuleMessage @ref="moduleMessageTop" Message="@_messageContent" Type="@_messageType" Visible="@(!string.IsNullOrEmpty(_messageContent) && _messagePosition == "top")" />
@DynamicComponent
@if (_progressIndicator)

View File

@ -1,5 +1,4 @@
using System.Collections.Generic;
using Oqtane.Models;
namespace Oqtane.Infrastructure
{