Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

warning - Tagify input element is already Tagified


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


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


Hi,

Thank you for reaching out to us.

Could you please specify which Metronic version are you using?

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");
}


Regards,
Lauris Stepanovs,
Keenthemes Support Team



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


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(