покраска выбора ячеек

This commit is contained in:
2025-07-22 08:41:48 +03:00
parent abc2ee44bd
commit 2671afce26

View File

@@ -195,7 +195,7 @@ export const Cell = memo(
>
{isEditing && isSelected ? (
<input
ref={activeCellRef}
ref={activeCellRef as React.RefObject<HTMLInputElement>}
type="text"
value={rawValue} // Во время редактирования показываем текущее редактируемое значение
onChange={e => onCellValueChange(e.target.value)}
@@ -228,7 +228,9 @@ export const Cell = memo(
whiteSpace: 'nowrap',
...(isSelected
? { boxShadow: 'inset 0 0 0 2px hsl(var(--primary))' }
: {}),
: highlightColor
? { boxShadow: 'inset 0 0 0 2px currentColor' }
: {}),
}}
>
<div