Skip to content

Commit

Permalink
Don't even render false state if empty && cant edit
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoelbert committed Apr 29, 2022
1 parent 349fac9 commit e2a30af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/data-grid/data-grid-lib.ts
Expand Up @@ -539,6 +539,10 @@ function roundedRect(
}

export function drawBoolean(args: BaseDrawArgs, data: boolean | null | undefined, canEdit: boolean) {
if (!canEdit && data === null) {
return;
}

const { ctx, hoverAmount, theme, x, y, w, h, highlighted, hoverX, hoverY } = args;

const hoverEffect = 0.35;
Expand Down

0 comments on commit e2a30af

Please sign in to comment.