Replies: 3 comments 3 replies
-
the order of JavaScripts are also imported, check out your bundles, manual script imports |
Beta Was this translation helpful? Give feedback.
-
Do you have a git repo you can share? - might make it a little easier to trouble shoot |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. The issue is caused by some of the JavaScript being executed before the blazor component is fully rendered. The scripts suppose to be execute only when the DOM is ready. As a result, I wrap it inside a custom event and use Jsinterop to call the script under Javscript:
Blazor component:
It works for me but it required a lot customization on the JavaScript, not sure if it is the best approach though. |
Beta Was this translation helpful? Give feedback.
-
UI: Blazor server
Version: 4.4
I have setup a local basic theme by using Volo.Abp.AspNetCore.Components.Server.BasicTheme and everything worked perfectly.
What I am trying to do is implement a bootstrap theme(Metronic ) into abp project.
I have copied all the necessary files and compile the theme as well. It worked as expected except some of the Javascript(Vanilla) features such as turn on/off canvas. I suspect there are some JS related conflicts. But unfortunately, there is no errors at all. So I am struggling to figure out what is the root cause. I also tried to run the theme alone and everything worked perfectly. The problems occurs only when I put everything into abp project.
So my question is, has anyone done similar thing before? Would you mind to share with me what is the best way to implement a theme to avoid such conflicts?
Beta Was this translation helpful? Give feedback.
All reactions