adobe / adobe/spectrum-web-components

[Bug]: Modal and page overlays don't allow programmatic clicks outside of overlay

Open
#5,624 1 comment 0 reactions 1 assignee Claimed by @Rajdeepc View on GitHub
bug SEV 2 triage
Dominant language
TypeScript
Stars
1.5k
Forks
262
Avg merge
3d 10h
Merged PRs (30d)
68

Description

### Code of conduct

- [x] I agree to follow this project's code of conduct.

### Impacted component(s)

sp-overlay

### Library version

1.7.0

### Expected behavior

Programmatic clicks on elements outside of the overlay should register.

### Actual behavior

Programmatic clicks on elements outside of the overlay do not register.

### Screenshots

_No response_

### What browsers are you seeing the problem in?

_No response_

### How can we reproduce this issue?

SWC 1.4.0, clicking the Download button inside the overlay will run the handleLinkClick handler: https://stackblitz.com/edit/vitejs-vite-yjur5dl3?file=package.json,src%2Fmy-element.ts

SWC 1.7.0, the click handler is never ran: https://stackblitz.com/edit/vitejs-vite-wvyhwd76?file=package.json,src%2Fmy-element.ts

### Sample code or abstract reproduction which illustrates the problem

_No response_

### Severity

SEV 2

### Logs taken while reproducing problem

_No response_

### Would you like to track this issue in Jira?

- [x] Yes, please tell me the ticket number!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.