Hi,
There seems to be a bug that causes the whole page to freeze.
I attached the code that causes it. To reproduce it run npm install
then npm run dev
. The app should be just the Bryntum gantt with a single task, if you move the task the page freezes.
I have found that it's caused by calling the ProjectModel instead of just the configuration. Inside the GanttEditor.vue file there is the following:
data() {
return {
project: new ProjectModel({
tasks: [
{
id: 1,
startDate: new Date(),
duration: 7,
durationUnit: "day",
name: "Design",
}
]
})
}
}
If that is instead changed to this, then it seems to work:
data() {
return {
project: {
tasks: [
{
id: 1,
startDate: new Date(),
duration: 7,
durationUnit: "day",
name: "Design",
}
]
}
}
}
It also seems to work fine if the gantt is placed in the App.vue file instead of the GanttEditor.vue file.
I tried this with version 5.1.3, and I also tried this with the new alpha version, 5.2.0-alpha-1, and it still seems to be happening.
Is there a workaround for this? I want to be able to use the ProjectModel syntax instead of the configuration object because I want to be able to extend from ProjectModel.
Thanks