I have below warnings on every pages.
Please advise what I need to check.
plugins.bundle.js:58060 Tagify: input element is already Tagified - Same instance is returned. <input class=â"form-control form-control-solid" value=â"Important, Urgent" name=â"tags" tabindex=â"-1">â
M @ plugins.bundle.js:58060
initForm @ VM71 new-target.js:15
init @ VM71 new-target.js:202
(anonymous) @ blazor.server.js:1
beginInvokeJSFromDotNet @ blazor.server.js:1
(anonymous) @ blazor.server.js:1
_invokeClientMethod @ blazor.server.js:1
_processIncomingData @ blazor.server.js:1
connection.onreceive @ blazor.server.js:1
o.onmessage @ blazor.server.js:1
Hi Lauris,
Thanks for the quick response.
I've added/modified as you advised. however, there still same warnings.
Could you please see below if it's correct?
protected override void OnAfterRender(bool firstRender)
{
JS.InvokeVoidAsync("KTThemeMode.init");
JS.InvokeVoidAsync("emptyBody");
if (firstRender)
{
JS.InvokeVoidAsync("KTModalUpgradePlan.init");
JS.InvokeVoidAsync("KTCreateApp.init");
JS.InvokeVoidAsync("KTModalUserSearch.init");
JS.InvokeVoidAsync("KTModalNewTarget.init");
JS.InvokeVoidAsync("KTAppSidebar.init");
JS.InvokeVoidAsync("scrollTo", 0, 0);
JS.InvokeVoidAsync("KTComponents.init");
JS.InvokeVoidAsync("KTMenu.updateByLinkAttribute", $"/{NavigationManager.ToBaseRelativePath(NavigationManager.Uri)}");
}
JS.InvokeVoidAsync("KTLayoutSearch.init");
}
Hi Bryan Cho,
Please make sure that you have update right files.
In folder Starterkit/Shared/Layout we have few layouts options, you should update this code in layout files used in Starterkit/App.razor.
Regards,
Lauris Stepanovs,
Keenthemes Support Team
Hi Lauris,
Thank you for quick response.
It's the Metronic theme v8.1.5
Hi,
Thank for specifying this.
Warning is related to KTModalNewTarget.init function multiple call and this should already be fixed in the latest version.
Inside your layout component you need to wrap the following initialization functions to execute those functions only on first render.
if(firstRender){
JS.InvokeVoidAsync("KTModalUpgradePlan.init");
JS.InvokeVoidAsync("KTCreateApp.init");
JS.InvokeVoidAsync("KTModalUserSearch.init");
JS.InvokeVoidAsync("KTModalNewTarget.init");
JS.InvokeVoidAsync("KTAppSidebar.init");
}
Hi,
Thank you for reaching out to us.
Could you please specify which Metronic version are you using?
Regards,
Lauris Stepanovs,
Keenthemes Support Team