Fix row background not changing to blue on selection (#6479)
[Screencast from 2024-07-31 21-57-49.webm](https://github.com/user-attachments/assets/d2d80b10-def9-4d0e-8bcc-53555742db19) @Bonapara Please review Closes #6461 - fixed , on selection the background is now changing to blue
This commit is contained in:
@ -8,7 +8,7 @@ import { RecordTableCellWrapper } from '@/object-record/record-table/record-tabl
|
||||
import { RecordTableTd } from '@/object-record/record-table/record-table-cell/components/RecordTableTd';
|
||||
|
||||
export const RecordTableCellsVisible = () => {
|
||||
const { isDragging } = useContext(RecordTableRowContext);
|
||||
const { isDragging, isSelected } = useContext(RecordTableRowContext);
|
||||
const { visibleTableColumnsSelector } = useRecordTableStates();
|
||||
|
||||
const visibleTableColumns = useRecoilValue(visibleTableColumnsSelector());
|
||||
@ -18,7 +18,7 @@ export const RecordTableCellsVisible = () => {
|
||||
return (
|
||||
<>
|
||||
<RecordTableCellWrapper column={visibleTableColumns[0]} columnIndex={0}>
|
||||
<RecordTableTd>
|
||||
<RecordTableTd isSelected={isSelected}>
|
||||
<RecordTableCell />
|
||||
</RecordTableTd>
|
||||
</RecordTableCellWrapper>
|
||||
@ -29,7 +29,7 @@ export const RecordTableCellsVisible = () => {
|
||||
column={column}
|
||||
columnIndex={columnIndex + 1}
|
||||
>
|
||||
<RecordTableTd>
|
||||
<RecordTableTd isSelected={isSelected}>
|
||||
<RecordTableCell />
|
||||
</RecordTableTd>
|
||||
</RecordTableCellWrapper>
|
||||
|
||||
Reference in New Issue
Block a user