mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Previously, the on_topic_change handler for the compose system would focus the compose box after a topic change, and also select all content in the compose box. Selecting that content makes sense if we think the user's intent is likely to be deleting that content; but there's no clear reason we should expect that intent, and it's not particularly consistent with our drafts model to risk accidentally losing partially composed message content this way. After some discussion, we've concluded that in both cases reaching this code path (either the previous topic being "" or the compose box content being entry), it'd be better to skip the `.select()`. Fixes #23146.
22 KiB
22 KiB