Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework selection inclusion; new Send button UX #905

Merged
merged 13 commits into from
Jul 29, 2024
Prev Previous commit
Next Next commit
fix double-send bug when using keyboard
  • Loading branch information
dlqqq committed Jul 29, 2024
commit 806940cb0bcc35b51d0126f3ff91f7a2b292334e
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ export function SendButton(props: SendButtonProps): JSX.Element {
}}
>
<MenuItem
onClick={() => sendWithSelection()}
onClick={e => {
sendWithSelection();
// prevent sending second message with no selection
e.stopPropagation();
}}
disabled={includeSelectionDisabled}
>
<includeSelectionIcon.react />
Expand Down