Page 1 of 1

[REACT] SchedulerPro 5.1.1 not refresh when certain fields are present

Posted: Tue Aug 09, 2022 10:37 am
by pzs

Hi,
We found the following issue with SchedulerPro 5:
When we update an event using EventModel.set() method and certain fields are present (inactive, constraintType or constraintDate), then the Scheduler is not refreshed (changes are not visible).

For example, after running this code:

scheduler.eventStore.getAt(0).set({
  name: 'test123',
  inactive: undefined
})

event is not refreshed on the Scheduler, but when we manually call the scheduler.refresh() method, changes get visible.

What we found so far:

  • if one of these fields are present with undefined/null value, Scheduler is not updated: inactive, constraintType or constraintDate
  • we can constantly reproduce this issue inside our application with SchedulerPro 5.0.5 and 5.1.1
  • we did not have this issue with Scheduler 4.3.9
  • we have not been able to reproduce this issue with the basic scheduler example yet (outside of our app)

Re: [REACT] SchedulerPro 5.1.1 not refresh when certain fields are present

Posted: Tue Aug 09, 2022 12:19 pm
by tasnim

Hi,
Thanks for reporting. We'll investigate it. Here is a ticket https://github.com/bryntum/support/issues/5028

Best regards,
Tasnim


Re: [REACT] SchedulerPro 5.1.1 not refresh when certain fields are present

Posted: Wed Aug 10, 2022 11:23 am
by pzs

Hi Tasnim,

I could reproduce the bug outside of our application:

It seems it's SchedulerPro specific issue, and it works in normal Scheduler.

Steps to reproduce:

Excepted: first event name is updated to 'test123'
Actual: first event name does not updated

Notes:

  • if you run schedulerPro.refresh(), then it will be updated

Re: [REACT] SchedulerPro 5.1.1 not refresh when certain fields are present

Posted: Wed Aug 10, 2022 11:51 am
by tasnim

Thanks for your information,
I've updated the ticket.

Best of luck :)
Tasnim