Skip to content

Keep the chat clickable when a host's modal dialog is open - #278

Merged
clbotdev merged 1 commit into
mainfrom
fix/embed-pointer-events
Dec 1, 2026
Merged

clbotdev merged 1 commit into
mainfrom
fix/embed-pointer-events

Conversation

@clbotdev

Copy link
Copy Markdown
Contributor

Part of #268 (CourseLit integration).

Modal dialogs (Radix, shadcn, Headless UI) set pointer-events: none on <body> while they're open. The loader appends the chat iframe, the launcher and the preview card straight to <body>, so they inherited it. A host that opens the chat from inside a dialog (CourseLit's Contact support on an upload error, shown while the upload dialog is still open) got a chat nobody could click or type in.

Each element the loader adds now sets pointer-events: auto.

Testing

  • Loader is 3,218 bytes gzipped (budget 5,120).
  • Local e2e with the CourseLit integration: uploading a file in CourseLit fails, then Contact support opens the chat over the still-open upload dialog. Clicking into the chat, typing and pressing Enter sends the message. The iframe computes pointer-events: auto while <body> has none. Before this change the iframe computed none and couldn't be clicked.

Modal dialogs (Radix, shadcn, Headless UI) put pointer-events: none on
<body> while open. The chat iframe, launcher and preview card are
appended to <body>, so they inherited it: a host that opened the chat
from inside a dialog (Contact support on an upload error) showed a chat
nobody could click or type in. Set pointer-events: auto on each.

Co-authored-by: Claude <noreply@anthropic.com>
@clbotdev

Copy link
Copy Markdown
Contributor Author

QA e2e passed (codelit/frontlit-sites:qa-pr278-60bf181 on QA). On coolschool.clqa.site with codelitdev/courselit#936, a failed upload's Contact support opened the chat over the still-open upload dialog. The iframe computed pointer-events: auto while <body> had none. Clicking into the chat, typing and pressing Enter sent the message (ticket created).

@clbotdev
clbotdev merged commit 7f751ad into main Dec 1, 2026
4 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.

2 participants