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.