timeaxis navigation error

Our pure JavaScript Scheduler component
User avatar
Steveoo61
Posts: 18
Joined: Fri Feb 08, 2019 3:43 pm

timeaxis navigation error

Post by Steveoo61 » Wed Mar 13, 2019 12:33 pm

hi,

When i hide week end and do shift next before friday error occur in internalOnReconfigure me.first.startDate first is undefined line 63817.

How can i know if the next date is valid when i shift next or previous?

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 1399
Joined: Fri Apr 01, 2016 11:08 am

Re: timeaxis navigation error

Post by pmiklashevich » Wed Mar 13, 2019 6:07 pm

You shouldn't see any exceptions! Can you reproduce this with one of our samples? Please add details according to this guide and provide a runnable testcase that we can inspect.
Pavel Miklashevich - Core Developer

User avatar
Steveoo61
Posts: 18
Joined: Fri Feb 08, 2019 3:43 pm

Re: timeaxis navigation error

Post by Steveoo61 » Thu Mar 14, 2019 3:18 pm

version: scheduler-1.x-2019-03-10-next
brave latest version.

-click filterable time axis
-click only week days
-click previous/next until the error occurs

TimeAxis.js:233 Uncaught TypeError: Cannot read property 'startDate' of undefined
at TimeAxis.internalOnReconfigure (TimeAxis.js:233)
at TimeAxis.reconfigure (TimeAxis.js:199)
at TimeAxis.setTimeSpan (TimeAxis.js:403)
at TimeAxis.shiftPrevious (TimeAxis.js:437)
at Scheduler.shiftPrevious (TimelineZoomable.js:805)
at Button.onClick (SchedulerFilterableTimeAxis.js:143)
at Button.callback (Base.js:240)
at Button.trigger (Events.js:625)
at Button.onInternalClick (Button.js:180)
at HTMLButtonElement.handler (EventHelper.js:396)
Attachments
SchedulerFilterableTimeAxis.js
(5.73 KiB) Downloaded 4 times

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 1399
Joined: Fri Apr 01, 2016 11:08 am

Re: timeaxis navigation error

Post by pmiklashevich » Thu Mar 14, 2019 7:37 pm

Thanks for the report! I've created a ticket so you can track the issue here: https://app.assembla.com/spaces/bryntum/tickets/7810
Pavel Miklashevich - Core Developer

User avatar
Steveoo61
Posts: 18
Joined: Fri Feb 08, 2019 3:43 pm

Re: timeaxis navigation error

Post by Steveoo61 » Thu Apr 18, 2019 10:45 am

i've always the issue in scheduler V2

User avatar
mats
Core Developer
Core Developer
Posts: 13783
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: timeaxis navigation error

Post by mats » Thu Apr 18, 2019 1:59 pm

It's fixed in latest 2.0 version, please re-test in latest nightly build (I just tried)
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
Steveoo61
Posts: 18
Joined: Fri Feb 08, 2019 3:43 pm

Re: timeaxis navigation error

Post by Steveoo61 » Thu Apr 18, 2019 2:15 pm

i've always the bug on scheduler-2.x-2019-04-17-release

User avatar
mats
Core Developer
Core Developer
Posts: 13783
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: timeaxis navigation error

Post by mats » Thu Apr 18, 2019 2:19 pm

Not sure how you do it then, I do

Code: Select all

-click filterable time axis
-click only week days
- call scheduler.shiftNext() 10 times on console
All works fine
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
Steveoo61
Posts: 18
Joined: Fri Feb 08, 2019 3:43 pm

Re: timeaxis navigation error

Post by Steveoo61 » Thu Apr 18, 2019 5:36 pm

it works in your exemple but i've always the issue and i don't understand why ^^

User avatar
pmiklashevich
Core Developer
Core Developer
Posts: 1399
Joined: Fri Apr 01, 2016 11:08 am

Re: timeaxis navigation error

Post by pmiklashevich » Thu Apr 18, 2019 6:03 pm

To be able to help you we need to have a runnable testcase that we can inspect. Could you please try to create one? You can start changing one of our demos and when you spot a bug just zip it up and attach here.

Cheers,
Pavel
Pavel Miklashevich - Core Developer

Post Reply