Page 1 of 1

[INFO REQ] composedPath() - TypeError: Illegal invocation - LWC (Salesforce)

Posted: Mon Feb 22, 2021 6:17 pm
by H9FFDC

Sorry in advance as this is tricky as the locker service is involved.

Screenshot showing console error
Screenshot showing console error
Screenshot 2021-02-22 161005.png (43.01 KiB) Viewed 824 times

When using the grid in a LWC we are getting a runtime error when trying to reduce or increase a numeric filter value.

I beleive you may have some awareness of this as some handsome chap raised it https://github.com/salesforce/lwc/issues/1875

I'm seeking information at this time. Is this a known issue for you guys we can track?

If it is to do with the usage of the ClickRepeater I would say it is exceptable to not to have this in LWC and rely on the user clicking multiple times.

Better view of stack trace
Better view of stack trace
Screenshot 2021-02-22 161627.png (13.52 KiB) Viewed 824 times
 onMouseDown(e) {
        const me = this,
              target = me.delegate ? e.target.closest(me.delegate) : me.element;

    if (target) {
      me.triggerEvent = e;
      EventHelper.lockComposedPath(me.triggerEvent);                < Error inside here

Re: [INFO REQ] composedPath() - TypeError: Illegal invocation - LWC (Salesforce)

Posted: Mon Feb 22, 2021 6:56 pm
by Maxim Gorkovsky

Hello.
We have an issue opened for a click repeater here: https://github.com/bryntum/support/issues/2321 Ticket also has a workaround.


Re: [INFO REQ] composedPath() - TypeError: Illegal invocation - LWC (Salesforce)

Posted: Tue Feb 23, 2021 11:24 am
by H9FFDC

Thank you!