oqtane / oqtane.framework

CMS & Application Framework for Blazor & .NET MAUI
http://www.oqtane.org
MIT License
1.9k stars 547 forks source link

[ENH] Page Management: Scroll To Top Of Page on Error for Edit and Add Page #4781

Open thabaum opened 1 month ago

thabaum commented 1 month ago

Oqtane Info

Version - 6.0.0 Render Mode - Static Interactivity - Server Database - SQL Server

Describe the enhancement

Currently, when an error occurs during the editing or adding of pages in the control panel/dashboard, the user remains at their current scroll position. This can lead to confusion, as users may not immediately see the error messages displayed at the top of the page.

Steps To Reproduce

  1. Navigate to the Edit Page or Add Page section of the control panel/dashboard.
  2. Enter invalid data or trigger an error (e.g., missing required fields) and click save (be sure to have a small enough window so that you do not see the top of the screen/page).
  3. Observe the error message displayed at the top of the page without any scrolling action.

Expected Behavior

Actual Behavior