Skip to content

TreeGroup: scrollEventIntoView crashes with empty levels #13000

@matsbryntse-dev

Description

@matsbryntse-dev

Bug description

Calling scrollEventIntoView() on a Scheduler configured with TreeGroup feature using empty levels: [] throws:

TreeGroup.js: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'isLoading')

Steps to reproduce

  1. Configure Scheduler with treeGroup: { levels: [] }
  2. Call scheduler.scrollEventIntoView(event)

Root cause

TreeGroup.waitForLoad() accesses me.originalStore.isLoading without guarding for originalStore being undefined. When levels is empty, TreeGroup has not been transformed yet and originalStore is never assigned.

Expected behavior

No error. The call should work as if TreeGroup was not active.

Forum post

https://forum.bryntum.com/viewtopic.php?f=44&t=35255&p=179469#p179469

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions