BlazorDateRangePicker
BlazorDateRangePicker copied to clipboard
Missing css and js
Installed via nugget
Result:
Im using blazorserver .net 8. It seems that it does not load either css or js. What i am missing?
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">
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.
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?
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 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 :)