Skip to content

Close detail sheet when clicking chart background - #11

Merged
snktshrma merged 1 commit into
mainfrom
cursor/close-detail-on-chart-click-0037
Jun 19, 2026
Merged

Close detail sheet when clicking chart background#11
snktshrma merged 1 commit into
mainfrom
cursor/close-detail-on-chart-click-0037

Conversation

@Tanops

@Tanops Tanops commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Problem

When the project/task/subtask detail sheet was open, only the ✕ button would close it. The chart behind the modal was visible but not clickable — the full-screen modal wrapper intercepted all pointer events.

Fix

  • Set pointer-events: none on the open modal wrapper so clicks pass through to the chart/scrim behind it.
  • Keep pointer-events: auto on .tbox so the editor itself remains fully interactive.
  • The existing scrim click handler (closeSheet()) now receives backdrop clicks on the dimmed chart area.

Testing

  • npm test — all 37 tests pass
  • Playwright: click chart background closes editor; click inside editor keeps it open
Open in Web Open in Cursor 

Let pointer events pass through the full-screen modal wrapper so clicks
on the dimmed gantt/scrim dismiss the project, task, or subtask editor
without requiring the close button.

Co-authored-by: Tanops <Tanops@users.noreply.github.com>
@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-19 10:43 UTC

@snktshrma
snktshrma merged commit 16f328e into main Jun 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants