From d76e7e2bf592b26531757a6deb7b3d95c9d336b1 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Thu, 25 Sep 2025 12:53:07 +0800 Subject: [PATCH] chore: make lint happy & fix typo --- client/ui/dialog/UserProfileDialog.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/ui/dialog/UserProfileDialog.tsx b/client/ui/dialog/UserProfileDialog.tsx index 708e027..c31b9fa 100644 --- a/client/ui/dialog/UserProfileDialog.tsx +++ b/client/ui/dialog/UserProfileDialog.tsx @@ -132,8 +132,9 @@ export default function UserProfileDialog({ }}> { - e.target.select() - e.target.setSelectRange(0, 1145141919810) + const input = e.target as HTMLInputElement + input.select() + input.setSelectionRange(0, 1145141919810) }}>