From 3f4f9b03dc0d9be119eab77de1893a15875b086d Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Tue, 7 Nov 2023 18:59:00 +0300 Subject: [PATCH] Still have problem with canvas preventing key events from firing --- .../src/pages/RSFormPage/EditorConstituenta.tsx | 2 +- .../src/pages/RSFormPage/EditorItems.tsx | 2 +- .../src/pages/RSFormPage/EditorRSForm.tsx | 2 +- .../src/pages/RSFormPage/EditorTermGraph.tsx | 16 ++++++++-------- .../frontend/src/pages/RSFormPage/RSTabs.tsx | 7 +++---- rsconcept/frontend/src/utils/constants.ts | 1 + 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx index 3804ef52..60cd8363 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorConstituenta.tsx @@ -161,7 +161,7 @@ function EditorConstituenta({ } return ( -
+
diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorItems.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorItems.tsx index ba34ded8..e674d0fd 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorItems.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorItems.tsx @@ -293,7 +293,7 @@ function EditorItems({ onOpenEdit, onCreateCst, onDeleteCst, onTemplates }: Edit
diff --git a/rsconcept/frontend/src/pages/RSFormPage/EditorRSForm.tsx b/rsconcept/frontend/src/pages/RSFormPage/EditorRSForm.tsx index 1e02a5c2..96bcb358 100644 --- a/rsconcept/frontend/src/pages/RSFormPage/EditorRSForm.tsx +++ b/rsconcept/frontend/src/pages/RSFormPage/EditorRSForm.tsx @@ -94,7 +94,7 @@ function EditorRSForm({ onDestroy, onClaim, onShare, isModified, setIsModified, } return ( -
+
0) { event.preventDefault(); handleDeleteCst(); - return; } } @@ -446,10 +445,11 @@ function EditorTermGraph({ onOpenEdit, onCreateCst, onDeleteCst }: EditorTermGra {dismissed.map(cstID => { const cst = schema!.items.find(cst => cst.id === cstID)!; const adjustedColoring = coloringScheme === 'none' ? 'status': coloringScheme; - return (<> + const id = `${prefixes.cst_hidden_list}${cst.alias}` + return (
{cst.alias}
- - ); +
); })}
}
-
+
@@ -420,7 +419,7 @@ function RSTabs() {
- + - + - +