Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes after TaskEdit Save when autoUpdateRecord: false #3732

Closed
jsakalos opened this issue Nov 15, 2021 · 1 comment
Closed

Crashes after TaskEdit Save when autoUpdateRecord: false #3732

jsakalos opened this issue Nov 15, 2021 · 1 comment
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer

Comments

@jsakalos
Copy link

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:

    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 ()
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.

@jsakalos jsakalos added bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer labels Nov 15, 2021
@matsbryntse
Copy link
Member

Not reproducible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum large-account Reported by large customer OEM OEM customer
Projects
None yet
Development

No branches or pull requests

2 participants