Skip to content

Commit

Permalink
🐛 fix: fix sessionList double click on mobile (lobehub#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Sep 9, 2023
1 parent 241cdb8 commit 3ea2bce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/chat/features/SessionList/List/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const SessionList = memo(() => {
<Link
href={SESSION_CHAT_URL(id, mobile)}
key={id}
onClick={(e) => {
// replace onClick with onPointerDown to prevent double click on mobile
onPointerDown={(e) => {
e.preventDefault();

if (mobile) switchSession(id);
Expand Down

0 comments on commit 3ea2bce

Please sign in to comment.