Skip to content

Commit cb1cc7b

Browse files
author
Amelia Wattenberger
committed
fix: remove unneeded editable-cell ref
1 parent 6d6225f commit cb1cc7b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/components/editable-cell.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export const EditableCell = React.memo(function (props: EditableCellProps) {
2424

2525
const [isEditing, setIsEditing] = React.useState(false);
2626
const [editedValue, setEditedValue] = React.useState(value);
27-
const cellElement = useRef<HTMLDivElement>(null);
2827

2928
useEffect(() => {
3029
setEditedValue(value);
@@ -68,7 +67,6 @@ export const EditableCell = React.memo(function (props: EditableCellProps) {
6867

6968
return (
7069
<div
71-
ref={cellElement}
7270
css={[
7371
tw`w-full h-full flex items-center cursor-cell border-[3px] border-transparent`,
7472
isFocused && tw`border-indigo-500`,

0 commit comments

Comments
 (0)