From 4aa62297d73bc351ff716a1c069a76e9505a1be4 Mon Sep 17 00:00:00 2001 From: Kirk Swenson Date: Sat, 13 Jul 2024 16:26:53 -0700 Subject: [PATCH] fix: redundant calls to handleRowsChange (#1349) --- v3/src/components/case-table/color-cell-text-editor.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/v3/src/components/case-table/color-cell-text-editor.tsx b/v3/src/components/case-table/color-cell-text-editor.tsx index bc195ec848..4dfc5e9611 100644 --- a/v3/src/components/case-table/color-cell-text-editor.tsx +++ b/v3/src/components/case-table/color-cell-text-editor.tsx @@ -91,11 +91,6 @@ export default function ColorCellTextEditor({ row, column, onRowChange, onClose updateValue(event.target.value) } - function handleInputKeyDown(event: React.KeyboardEvent) { - if (event.key === "Enter") acceptValue() - if (event.key === "Escape") rejectValue() - } - function handleInputBlur() { !isPaletteOpen && acceptValue() } @@ -103,7 +98,6 @@ export default function ColorCellTextEditor({ row, column, onRowChange, onClose const swatchStyle: React.CSSProperties | undefined = showColorSwatch.current ? { background: color } : undefined const inputElt =