[Bug Report] Calendar type 4day. Change event actually spans 5 days instead of 4 #12666
Labels
C: VCalendar
VCalendar
S: has PR
The issue has a pending Pull Request
T: bug
Functionality that does not work as intended/expected
Environment
Vuetify Version: 2.3.18
Vue Version: 2.6.11
Browsers: Chrome 86.0.4240.198
OS: Mac OS 10.15.7
Steps to reproduce
Create a
v-calendar
with the propstype="4day"
,start="2020-11-23"
, andend="2020-11-26"
.The calendar presents everything as intended, starting with Monday the 23rd going to Thursday the 26th.
The initial onChange event that triggers gives the incorrect end date of Friday the 27th (2020-11-27)
Expected Behavior
The
change
event should be a range of 4 daysActual Behavior
The
change
event adds 4 days to the start date making it 5 days in totalReproduction Link
https://codepen.io/ChristerGustavsson/pen/WNGevwN
Other comments
I was using the
change
event to bind parameters used as query parameters to an API and noticed that they fetched more events than needed.It seems like the other calendar types of
day
,week
&month
do not have this issue. I haven't tested withcustom-weekly
,custom-daily
, orcategory
.The text was updated successfully, but these errors were encountered: