Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

@keegangeorge
Copy link
Member

@keegangeorge keegangeorge commented Mar 26, 2025

🔍 Overview

This update fixes an issue where the results of the post helper menu was not selectable. Previously, selecting any text inside the menu was immediately closing the menu.

📸 Screenshot

Screenshot 2025-03-26 at 11 20 27

🔗 Relevant Links

https://meta.discourse.org/t/setting-to-manually-close-ai-helpers-popup-modal/358300?u=keegan

keegangeorge added a commit to discourse/discourse that referenced this pull request Mar 26, 2025
This update adds a new value transformer to the `PostTextSelection`
component. This allows for dynamically setting a `preventClose`
property. This is useful to prevent the `onSelectionChange` listener
from firing a toolbar close. In particular, we want to use this in
Discourse AI to prevent the selection change from closing the toolbar
when selecting new text inside the explain popup
(discourse/discourse-ai#1221)
@keegangeorge keegangeorge merged commit 371146c into main Mar 26, 2025
6 checks passed
@keegangeorge keegangeorge deleted the fix-selection-post-helper branch March 26, 2025 18:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants