jdtcn / BlazorDateRangePicker

A Blazor component for choosing date ranges and dates
MIT License
182 stars 35 forks source link

DatePicker is always open #102

Closed SergSchmal closed 5 months ago

SergSchmal commented 5 months ago

The DatePicker is always open, both when you open the page and when you click the "Apply" button. See attached screenshot. 05-04-_2024_06-11-01

jdtcn commented 5 months ago

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">
SergSchmal commented 5 months ago

I have <link rel="stylesheet" href="_content/BlazorDateRangePicker/daterangepicker.min.css" /> installed

jdtcn commented 5 months ago

It won't work like this, because since version 5 css isolation is used. Please configure it as described in the instructions. After configuring file _content/BlazorDateRangePicker/BlazorDateRangePicker.bundle.scp.css will be included in your app's css bundle automatically. Or you can stay with version 4.

SergSchmal commented 5 months ago

Thanks for the tip, it all works now, just looks a bit odd to have an empty css file for the page