Our flexible Kanban board for managing tasks with drag drop


Post by geoffswift »

Crash is reproducible on this demo: https://bryntum.com/examples/taskboard/task-edit/

Ensure the TaskBoard config includes the following:

    features : {
        taskEdit   : {
            editorConfig: { autoUpdateRecord: false }
        },
    },
    useDomTransition : false,

The following error results:
Uncaught TypeError: Cannot read properties of null (reading 'dispatchEvent')
at focusin (taskboard.module.js?454302:10)
at HTMLBodyElement._0x2ab3a3 (taskboard.module.js?454302:10)
at Function.focusWithoutScrolling (taskboard.module.js?454302:10)
at Object.revertFocus (taskboard.module.js?454302:10)
at taskboard.module.js?454302:10
at new Promise (<anonymous>)
at Object.hide (taskboard.module.js?454302:10)
at Object.doDestroy (taskboard.module.js?454302:10)
at Object.doDestroy (taskboard.module.js?454302:10)
at Object.doDestroy (taskboard.module.js?454302:10)

I guess it dies because the card you were editing was destroyed, and recreated, it's problematic to set focus back on that particular card. And conversely that'd explain why it works fine when the card is being moved during the animation (and so it still exists after the taskEdit dialogue is closed).

For our product, I considered enabling useDomTransition as a workaround, but the documentation says the feature is "Experimental" and "not supported for Lightning Web Components". So it seems to be a bad idea for my Salesforce app.


Post by saki »

How do I trigger the error? I have tried the following but it worked:

taskboard.gif
taskboard.gif (1.36 MiB) Viewed 1419 times

Post by geoffswift »

You would need to amend the value of the "STATUS" field and then click "Save". The card will then be removed and recreated in a different column.


Post by saki »

Yes, I could reproduce the crash. The ticket is here: https://github.com/bryntum/support/issues/3732

Thank you very much for reporting.


Post by mats »

@geoffswift Can you still reproduce this in 5.3.2? Seems ok now.


Post by geoffswift »

I can't reproduce this anymore, and we're on 5.2.10. Thanks.


Post Reply