Closed mrmf0 closed 8 months ago
The calendar is better for some applications however in range mode the component only returns the start date. It would be better to return both values in range mode.
Hi @mrmf0
I hope you guys are doing well. I've looked at your codesandbox example. There is no problem with the package when you are using range datepicker/calendar you can just simply receive from
and to
dates by two parameters like this: onChange={(from, to) => console.log(from, to)}
. have you tried this before?
cc: @SalehMehrabani
hi @rzkhosroshahi I don't know why I feel that I tried this method before and it didn't work, when maybe I didn't try it.
thanks a lot
hi @rzkhosroshahi
Is there any difference between mobile/tablet mode with desktop mode to select range? I do last solution to get both start and end range in calendar. In my tests I found that in desktop mode all things works correctly but by selecting range in mobile device with same code, it returns both from
& to
as equal value to start date value. How can solve this?
v2.1.0 just released this issue should be fixed by upgrading zaman.
hi, thanks a lot for stunning jalali date picker library. CalendarProvider range is more beautiful than select range by click on input so we preffered to use your CalendarProvider instead of DatePicker range, by the way you also provide an example like what i said on codesandbox :
but i think there is an issue that onChange event only returns first selected date but i hope when we proped range, onChange returns both date started and date ends, some thing like usual way that select date ranges works
how we can use CalendarProvider to get full range dates?
by the way is it possible to use this as one date click then select date range from clicked date till today?