alumuko / vanilla-datetimerange-picker

A JavaScript component that is a date & time range picker, no need to build, no dependencies except Moment.js, that is based on Dan Grossman's bootstrap-daterangepicker.
MIT License
148 stars 17 forks source link

How to set default value empty ? #15

Open kopax-polyconseil opened 1 year ago

kopax-polyconseil commented 1 year ago

So far, when I arrive on my page, I always have a date range selected.

I want it to be optional, how can I clear the initial value (or set a default value)?

Thanks for sharing !

MedK-SAMA commented 4 months ago

After initializing the picker, i empty the value of the input, but the problem now it that just opening the picker fills the input again