Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrollEventIntoView throwing error in gantt-schedulerpro demo #7541

Closed
taauntik opened this issue Sep 21, 2023 · 0 comments
Closed

scrollEventIntoView throwing error in gantt-schedulerpro demo #7541

taauntik opened this issue Sep 21, 2023 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum OEM OEM customer premium resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@taauntik
Copy link

Forum post

Reproduced here https://bryntum.com/products/gantt/examples/gantt-schedulerpro/

chrome_A5DwsZT3vv.mp4

You can reproduce it with these

schedulerPro.scrollResourceEventIntoView(schedulerPro.eventStore.getById(4033).resources[0], schedulerPro.eventStore.getById(4033));
schedulerPro.scrollEventIntoView(schedulerPro.eventStore.getById(4033));

scrollResourceEventIntoView callstack:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'id')
    at ProHorizontalRendering.getResourceEventBox (gantt.module.js?470767:63:739965)
    at SchedulerPro.getResourceEventBox (gantt.module.js?470767:63:706422)
    at gantt.module.js?470767:63:704743
    at new Promise (<anonymous>)
    at SchedulerPro.scrollUnrenderedEventIntoView (gantt.module.js?470767:63:704579)
    at SchedulerPro.scrollResourceEventIntoView (gantt.module.js?470767:63:704465)
    at SchedulerPro.scrollEventIntoView (gantt.module.js?470767:63:702434)
    at SchedulerPro.scrollResourceEventIntoView (gantt.module.js?470767:63:703850)
    at SchedulerPro.scrollEventIntoView (gantt.module.js?470767:63:702434)
    at SchedulerPro.scrollResourceEventIntoView (gantt.module.js?470767:63:703850)

scrollEventIntoView callstack:

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'id')
    at ProHorizontalRendering.getResourceEventBox (gantt.module.js?470767:63:739965)
    at SchedulerPro.getResourceEventBox (gantt.module.js?470767:63:706422)
    at gantt.module.js?470767:63:704743
    at new Promise (<anonymous>)
    at SchedulerPro.scrollUnrenderedEventIntoView (gantt.module.js?470767:63:704579)
    at SchedulerPro.scrollResourceEventIntoView (gantt.module.js?470767:63:704465)
    at SchedulerPro.scrollEventIntoView (gantt.module.js?470767:63:702434)
    at SchedulerPro.scrollResourceEventIntoView (gantt.module.js?470767:63:703850)
    at SchedulerPro.scrollEventIntoView (gantt.module.js?470767:63:702434)
    at SchedulerPro.scrollResourceEventIntoView (gantt.module.js?470767:63:703850)
@taauntik taauntik added bug Something isn't working premium forum Issues from forum OEM OEM customer labels Sep 21, 2023
@isglass isglass self-assigned this Sep 22, 2023
@isglass isglass changed the title scrollResourceEventIntoView/scrollEventIntoView throwing error in gantt-schedulerpro demo scrollEventIntoView throwing error in gantt-schedulerpro demo Sep 22, 2023
@isglass isglass added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed in progress ready for review Issue is fixed, the pull request is being reviewed labels Sep 22, 2023
@isglass isglass added this to the 5.5.4 milestone Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum OEM OEM customer premium resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

2 participants