diff --git a/client/drawer.tsx b/client/drawer.tsx index 7532c31..a590e08 100644 --- a/client/drawer.tsx +++ b/client/drawer.tsx @@ -553,6 +553,7 @@ function NewDrawingButton() { label="Drawing name" helperText={!validDrawingName && "Drawing name must be unique."} defaultValue={defaultNewDrawingName} + onKeyDown={(e) => e.stopPropagation()} onChange={(e) => setNewDrawingName(e.target.value)} /> @@ -597,6 +598,7 @@ function RenameDrawingButton({ drawingId }: { drawingId: DrawingId }) { label="Drawing name" helperText={!validDrawingName && "Drawing name already exists."} defaultValue={defaultNewDrawingName} + onKeyDown={e => e.stopPropagation()} onChange={(e) => setNewDrawingName(e.target.value)} /> @@ -656,6 +658,7 @@ function ForkDrawingButton({ label="Drawing name" helperText={!validDrawingName && "Drawing name already exists."} defaultValue={defaultNewDrawingName} + onKeyDown={(e) => e.stopPropagation()} onChange={(e) => setNewDrawingName(e.target.value)} />