Skip to content

Commit

Permalink
Apply cell hover reveal style when not in editing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
laratran committed Oct 29, 2024
1 parent dea32fa commit c9855bc
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,13 +302,15 @@ export const MRT_TableBodyCell = <TData extends MRT_RowData>({
})}
>
<>
{tableCellProps.children ?? (
columnDef.enableCellHoverReveal ? (
{tableCellProps.children ??
(columnDef.enableCellHoverReveal ? (
<div
ref={cellHoverRevealDivRef}
className={clsx(
columnDef.enableCellHoverReveal && classes["cell-hover-reveal"],
isCellContentOverflowing && classes['overflowing']
columnDef.enableCellHoverReveal &&
!(isCreating || isEditing) &&
classes['cell-hover-reveal'],
isCellContentOverflowing && classes['overflowing'],
)}
>
{renderCellContent()}
Expand Down

0 comments on commit c9855bc

Please sign in to comment.