fluentcms / FluentCMS

ASP.NET Core Blazor Content Management System (CMS)
https://fluentcms.com
MIT License
157 stars 28 forks source link

after navigating between layouts, if a layout has additional js script, it won't execute. #1362

Open TheHadiAhmadi opened 4 months ago

TheHadiAhmadi commented 4 months ago

when enhanced navigation is enabled, new javascript scripts won't register.

pournasserian commented 3 months ago

@TheHadiAhmadi is this resolved?

TheHadiAhmadi commented 3 months ago

@pournasserian No, if second layout has additional JavaScripts, they won't execute.

Currently in AuthLayout file we have 2 scripts which are not needed

flowbite.min.js app.js

When this issue resolved, we can remove those scripts

pournasserian commented 3 months ago

There are some open issues on Blazor:

https://github.com/dotnet/aspnetcore/issues/53887 https://github.com/dotnet/aspnetcore/issues/55119 https://github.com/dotnet/aspnetcore/issues/52412

We should keep track them and revise this issue once they resolve that.

Also, in App.razor we should apply the client-side window.fetch section.

TheHadiAhmadi commented 2 months ago

https://github.com/dotnet/aspnetcore/issues/52273