support icon indicating copy to clipboard operation
support copied to clipboard

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

Open jsakalos opened this issue 11 months ago • 3 comments

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:

  • If we set it to first day then the 1st event disappears and we only see one - on the 2nd day.
  • If we set it to 2nd day then the 2nd event jumps one day forward and we still see 2 events.

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.

jsakalos avatar Mar 11 '24 13:03 jsakalos

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

AlexandruIonutZarnescu avatar May 13 '24 08:05 AlexandruIonutZarnescu

Checking it now, it might already be fixed

matsbryntse avatar May 13 '24 08:05 matsbryntse

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

matsbryntse avatar May 13 '24 10:05 matsbryntse