Hi Bryntum teams!
We are facing an issue with Salesforce due to Lightning
(probably Locker
) returning undefined for getRootNode()
.
This happens no matter Lightning Web Security
is enabled or disabled.
Clicking on a record page’s background makes Bryntum fail with a “Cannot read properties from undefined”
error when capturing the DOM event that bubbles up:
This is causing the error to be caught by Salesforce some times, getting to the end user. This has been reported by some of our customers though we haven’t been able to reproduce it in our development environments:
A possible fix would be to use optional chaining when reading the host property: target?.getRootNode?.()?.host
.
There is a related issue currently opened. If fixed, it won’t fix ours though: https://github.com/bryntum/support/issues/6696
Thanks!