Crashes after TaskEdit Save when autoUpdateRecord: false #3732
Labels
bug
Something isn't working
forum
Issues from forum
large-account
Reported by large customer
OEM
OEM customer
Reproduced.
useDomTransition : false
has no effect on the bug.Forum post
Crash is reproducible on this demo: https://bryntum.com/examples/taskboard/task-edit/
Ensure the TaskBoard config includes the following:
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 ()
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.
The text was updated successfully, but these errors were encountered: