Closed
Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
When using a shadowDOM (e.g. with custom web components) within an overlay a click to that shadowDOM will trigger overlayOutsideClick
.
Can you confirm that this is unintended behavior?
If yes, I´ll try to provide a pull request to fix it.
Reproduction
StackBlitz link: https://stackblitz.com/edit/cdk-overlay-web-components-issue?file=src%2Fmain.ts
Steps to reproduce:
- Open the overlay by clicking the "open" button
- Click the web component button
Expected Behavior
The click does not trigger overlayOutsideClick
Actual Behavior
The click does trigger overlayOutsideClick
Environment
- Angular: 18.0.0
- CDK: 18.0.2