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

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