lwc icon indicating copy to clipboard operation
lwc copied to clipboard

fix: event listener not being invoked for native web components

Open jye-sf opened this issue 1 year ago • 0 comments

Details

Addresses https://github.com/salesforce/lwc/issues/4011.

This PR attempts to bypass our addEventListener() patch when working with event targets under a native shadow root.

Remaining work:

  • [ ] Do we need to do something similar for removeEventListener() to avoid inconsistent behavior?
  • [ ] Investigate and fix test failures on existing tests
  • [ ] Refactor and move new tests to appropriate space

Does this pull request introduce a breaking change?

  • ✅ No, it does not introduce a breaking change.
  • 🚨 Yes, it does introduce a breaking change.

Does this pull request introduce an observable change?

  • ⚠️ Yes, it does include an observable change.

This changes the composed path in some scenarios. The full, explicit list of scenarios may need to be explored.

GUS work item

jye-sf avatar Feb 22 '24 20:02 jye-sf