blackbluegl / calendar-component

initial Vaadin8 calendar-component
Apache License 2.0
11 stars 21 forks source link

BasicBackwardHandler Daily Mode Problem #17

Closed aorsorlu closed 6 years ago

aorsorlu commented 6 years ago

In BasicBackwardHandler class there is a bug in finding previous day in daily mode (Same bug exists in BasicForwardHandler). If not showing weekends on calendar (getFirstVisibleDayOfWeek => 1, getLastVisibleDayOfWeek => 5), when you press back button on Monday (i expect to see previous friday) there is a bug at line : dayOfWeek = start.get(ChronoField.DAY_OF_WEEK); It has to be: dayOfWeek = newDate.get(ChronoField.DAY_OF_WEEK);

blackbluegl commented 6 years ago

Fixed in next release