From 6a1c75b16533c978f6466e1d29bfd3e11d8e8ad6 Mon Sep 17 00:00:00 2001 From: Timur Ercan Date: Tue, 14 Feb 2023 16:56:03 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20delte=20document=20button=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/pages/documents.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/web/pages/documents.tsx b/apps/web/pages/documents.tsx index 05030fb81..0d93a726b 100644 --- a/apps/web/pages/documents.tsx +++ b/apps/web/pages/documents.tsx @@ -230,6 +230,8 @@ const DocumentsPage: NextPageWithLayout = (props: any) => { className="flex-shrink-0 -ml-1 mr-3 h-6 w-6 inline text-neon" aria-hidden="true" onClick={(event) => { + event.preventDefault(); + event.stopPropagation(); if ( confirm( "Are you sure you want to delete this document"