Replies: 1 comment 1 reply
-
Although I do not have the answer to your question, I would like to add that I too have encountered this issue. When trying to add any form of UI javascript (including Bootstrap js files) to the _Host file, it does not work unless it is located in the head tag. Putting it at the bottom of your body tag ( where it would usually go ) essentially acts as if it is not there. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm just starting to learn Blazor Server Side app using latest .NET Core 3.1 Framework.
Dev Env: Microsoft Visual Studio Professional 2019
Version 16.5.4
Microsoft .NET FRamework 4.7.03062
I want to use DateTime Picker on my Index.razor page:
Here is my _Host.cshtml:
The issue I'm facing is when this reference is sitting within the
<body>
tag(where this is actually supposed to be), my "orderDatePicker" is not working (not showing Dates to pick).
But when I move
from
<body>
to<head>
the Picker works perfectly:Looks like my problem is resolved, but new and bigger issue appears as a result of that move.
The onclick event is not working on Counter.razor page
onclick event does not fire while this worked well before the move.
Could anybody explain me why this is happening.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions