Skip to content

Commit

Permalink
refactor: don't wipe out style.backgroundColor on DropZone
Browse files Browse the repository at this point in the history
This was a bug introduced when optimising performance and adding the render debug mode.
  • Loading branch information
chrisvxd committed Jan 20, 2025
1 parent f1dec0e commit 29e5580
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/components/DropZone/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ const DropZoneEdit = forwardRef<HTMLDivElement, DropZoneProps>(
{
...style,
"--min-empty-height": `${minEmptyHeight}px`,
backgroundColor: RENDER_DEBUG ? getRandomColor() : undefined,
backgroundColor: RENDER_DEBUG
? getRandomColor()
: style?.backgroundColor,
} as CSSProperties
}
>
Expand Down

0 comments on commit 29e5580

Please sign in to comment.