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
53 stars 6 forks source link

Hot module reloading throws if subGridConfigs is used #6550

Open bmblb opened 1 year ago

bmblb commented 1 year ago

Reproducible in grid basic demo, just call grid.subGridConfigs = { normal : {} }. This is what gets called in framework demos when re-rendering components

bmblb commented 1 year ago

More problems occur when you try to apply this config twice to the scheduler pro:

const config = {
    infiniteScroll : true,

    timeAxis : {
        listeners : {}
    },

    viewPreset : {
        base           : 'dayAndWeek',
        tickWidth      : 50,
        timeResolution : {
            unit      : 'day',
            increment : 1
        },
        headers : [
            {
                unit       : 'day',
                dateFormat : 'ddd DD'
            }
        ]
    }
};