Merge pull request #4668 from sbwalker/dev
fix #4666 - scroll position in enhanced navigation
This commit is contained in:
commit
a4395b62ff
|
@ -522,7 +522,7 @@
|
||||||
" let currentUrl = window.location.pathname;" + Environment.NewLine +
|
" let currentUrl = window.location.pathname;" + Environment.NewLine +
|
||||||
" Blazor.addEventListener('enhancedload', () => {" + Environment.NewLine +
|
" Blazor.addEventListener('enhancedload', () => {" + Environment.NewLine +
|
||||||
" let newUrl = window.location.pathname;" + Environment.NewLine +
|
" let newUrl = window.location.pathname;" + Environment.NewLine +
|
||||||
" if (currentUrl !== newUrl || window.location.hash === '') {" + Environment.NewLine +
|
" if (currentUrl !== newUrl || window.location.hash === '#top') {" + Environment.NewLine +
|
||||||
" window.scrollTo({ top: 0, left: 0, behavior: 'instant' });" + Environment.NewLine +
|
" window.scrollTo({ top: 0, left: 0, behavior: 'instant' });" + Environment.NewLine +
|
||||||
" }" + Environment.NewLine +
|
" }" + Environment.NewLine +
|
||||||
" currentUrl = newUrl;" + Environment.NewLine +
|
" currentUrl = newUrl;" + Environment.NewLine +
|
||||||
|
|
|
@ -8,10 +8,6 @@ using Oqtane.Infrastructure;
|
||||||
using Oqtane.Repository;
|
using Oqtane.Repository;
|
||||||
using Oqtane.Security;
|
using Oqtane.Security;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Reflection.Metadata;
|
|
||||||
using Microsoft.Extensions.Localization;
|
|
||||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
||||||
using System.Linq;
|
|
||||||
|
|
||||||
namespace Oqtane.Controllers
|
namespace Oqtane.Controllers
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user