Skip to content

Commit 9f4b9f3

Browse files
committed
fix(web): keep the secret card's focus handler unchanged
1 parent f4dc0b1 commit 9f4b9f3

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎apps/web/src/components/chat/SecretRequestCard.tsx‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ function PendingSecretRequestForm(props: {
103103
autoComplete="off"
104104
onPointerDown={(event) => {
105105
if (!(event.target instanceof HTMLElement)) return;
106-
// Pressing text would move focus and cancel the selection, so the
107-
// reason (often a URL to copy) stays selectable.
108-
if (event.target.closest("input, button, a, p")) return;
106+
if (event.target.closest("input, button, a")) return;
109107
document.getElementById(inputId)?.focus();
110108
}}
111109
>

0 commit comments

Comments
 (0)