bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

Error being triggered when taskStore is configured in BryntumProjectModel wrapper #8376

Closed marciogurka closed 9 months ago

marciogurka commented 9 months ago

Forum post

Using our React inline demo, if you add a taskStore configuration, it triggers an error when clicking the Change data button.

<BryntumGanttProjectModel
                ref={project}
                {...projectConfig}
                calendars={calendars}
                tasks={tasks}
                assignments={assignments}
                dependencies={dependencies}
                resources={resources}
                timeRanges={timeRanges}
                taskStore={{
                    onBeforeRemove : (eventData) => {
                        console.log(eventData);
                    }
                }}

            />

Note

Also check for eventStore:

eventStore={{
    onBeforeRemove: (payload) => handleOnBeforeRemove(payload),
}}

Screenshot 2024-01-28 at 18 50 40

SergeyMaltsev commented 9 months ago

Problem with React app configuration. Forum thread has been updated,