You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The weird thing is that Smidge.RequiresJs works fine in this scenario.
The problem seems to go away if I call the same partial outside the @section block.
For now the solution I'm using is calling Smidge directly from the HeroTemplate, but that's not ideal.
Any idea what the problem could be? Thanks in advance
EDIT:
Ok the partial has nothing to do with it. I tried to put the Smidge calls directly inside the @section block and the problem is the same. I edited the title to reflect this.
The text was updated successfully, but these errors were encountered:
Pustur
changed the title
RequiresCss not working when called inside a partial view that is itself inside a @section block
RequiresCss not working inside a @section block
Mar 6, 2023
Hi,
I noticed that sometimes when calling
Smidge.RequiresCss
inside a partial that is itself called within a@section
block, it won't output anything.Here's a simplified example:
The weird thing is that
Smidge.RequiresJs
works fine in this scenario.The problem seems to go away if I call the same partial outside the
@section
block.For now the solution I'm using is calling Smidge directly from the
HeroTemplate
, but that's not ideal.Any idea what the problem could be? Thanks in advance
EDIT:
Ok the partial has nothing to do with it. I tried to put the Smidge calls directly inside the
@section
block and the problem is the same. I edited the title to reflect this.The text was updated successfully, but these errors were encountered: