покраска выбора ячеек
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user