bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Occurrences should not be skipped for COUNT-based rules when changing `exceptionDates` at the data level #8783

Closed jsakalos closed 4 months ago

jsakalos commented 6 months ago

To reproduce:

  1. navigate to https://bryntum.com/products/calendar/examples/basic/
  2. go to today
  3. create a recurring event: Repeats daily, ends after 2 repeats
  4. in console: bryntum.query('calendar').eventStore.last.excpetionDates = ['2024-MM-dd']; // first day
  5. in console: bryntum.query('calendar').eventStore.last.excpetionDates = ['2024-MM-dd']; // second day

The behavior is different:

Is this an expected behavior?

Note: This issue has nothing to do with Angular.

Forum post

Hello. Let's say we have this recurrence: RRULE:FREQ=DAILY;INTERVAL=1;COUNT=2 that start on 3/8/2024.

The displayed dates will be: 3/8/2024 and 3/9/2024.

If i add to ExceptionDates the first date, the displayed dates will be: 3/9/2024 wich is correct.

BUT if i add to ExceptionDates the last date, the displayed dates will be: 3/8/2024 AND 3/10/2024 wich is wrong.

AlexandruIonutZarnescu commented 4 months ago

Hello, any news about this bug? One ETA of this?

matsbryntse commented 4 months ago

Checking it now, it might already be fixed

matsbryntse commented 4 months ago

@AlexandruIonutZarnescu Are you deleting the occurrence via UI? Or you are providing exceptionDates in your Event data?