BlazorDateRangePicker icon indicating copy to clipboard operation
BlazorDateRangePicker copied to clipboard

Missing css and js

Open AdriaRomero31 opened this issue 10 months ago • 5 comments

Installed via nugget

image

Result:

image

Im using blazorserver .net 8. It seems that it does not load either css or js. What i am missing?

AdriaRomero31 avatar Jan 09 '25 10:01 AdriaRomero31

Hi, please check if the css styles for the component are loaded, the component uses css and js isolation, you need to make sure the isolated styles are connected:

<link href="{ASSEMBLY NAME}.styles.css" rel="stylesheet">

jdtcn avatar Jan 09 '25 19:01 jdtcn

Hi, I have the exact same issue. This issue only occurred after upgrading the calling application to .NET 8.0 from 7.0. The isolated CSS styles and JS library don't appear to have been loaded, from inspecting the DOM.

tankrizzo avatar Jan 10 '25 12:01 tankrizzo

Hi, please check if the css styles for the component are loaded, the component uses css and js isolation, you need to make sure the isolated styles are connected:

<link href="{ASSEMBLY NAME}.styles.css" rel="stylesheet">

Dosen't work for me. Something changed?

AdriaRomero31 avatar Jan 13 '25 07:01 AdriaRomero31

I advise you to look how it is implemented in test projects, if it still does not work for you, please create an empty project reproducing the problem and send here the link, and I will try to fix it

jdtcn avatar Jan 25 '25 22:01 jdtcn

@jdtcn Can you maybe include the css/js files again in the next version of the package, so it can be used without css/js isolation? I am using a custom bundle and don't load the {ASSEMBLY NAME}.styles.css. Also I noted that your documentation under https://blazordaterangepicker.azurewebsites.net/ still states to use _content/BlazorDateRangePicker/daterangepicker.min.css and _content/BlazorDateRangePicker/clickAndPositionHandler.js, so maybe that should be corrected? Thanks a lot :)

linkurzweg avatar Apr 15 '25 13:04 linkurzweg