support
support copied to clipboard
[SALESFORCE] TaskBoard ResponsiveCards mixin does not work in LWS
Hello!
The responsive cards feature relies on the ResizeObserver, which is not available in the Locker service.
The ResponsiveCardOverride addresses this by emptying the changeResizeObserver method. However, this override is applied unconditionally, which also affects LWS environment where the ResizeObserver is working just fine.
I implemented the "Zooming" demo in a Salesforce environment to illustrate the issue.
By applying the override conditionally to only work in the Locker environment, the responsive rendering feature can be made available to at least some users.
if (!window.ResizeObserver) {
Override.apply(ResponsiveCardOverride);
}
Result: