Revert "Fixed first render js bug"
This commit is contained in:
parent
cfe8059176
commit
dda71e5ccd
|
@ -46,7 +46,9 @@ namespace Oqtane.Modules
|
|||
|
||||
// base lifecycle method for handling JSInterop script registration
|
||||
|
||||
protected override async Task OnInitializedAsync()
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
if (Resources != null && Resources.Exists(item => item.ResourceType == ResourceType.Script))
|
||||
{
|
||||
|
@ -62,6 +64,7 @@ namespace Oqtane.Modules
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// path method
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user