Repository navigation
Keep the chat clickable when a host's modal dialog is open - #278
Merged
Merged
Conversation
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>
Contributor
Author
|
QA e2e passed ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #268 (CourseLit integration).
Modal dialogs (Radix, shadcn, Headless UI) set
pointer-events: noneon<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
pointer-events: autowhile<body>hasnone. Before this change the iframe computednoneand couldn't be clicked.