From c51ecd00b98909066059819db55274584a90b915 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Mon, 25 Sep 2023 12:33:26 +0200 Subject: [PATCH] fix escape --- libs/remix-ui/workspace/src/lib/components/file-label.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/remix-ui/workspace/src/lib/components/file-label.tsx b/libs/remix-ui/workspace/src/lib/components/file-label.tsx index b19811c2b15..ce1d6d513a2 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-label.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-label.tsx @@ -54,7 +54,8 @@ export const FileLabel = (props: FileLabelProps) => { } if (event.which === 27) { event.preventDefault() - editModeOff(labelRef.current.innerText) + // don't change it + editModeOff(file.name) } }