Skip to content

Commit

Permalink
fix: correctly use Dropzone's className prop (#2950)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido authored Dec 19, 2023
1 parent b5c0510 commit 28aada9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Dropzone/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,7 @@ function Dropzone({
<div
data-testid="dropzone-container"
{...getRootProps({
className: classNames('pgn__dropzone', {
className,
className: classNames('pgn__dropzone', className, {
'pgn__dropzone-validation-error': isMultipleDragged || errors.length > 0 || isDragReject,
'pgn__dropzone-active': isDragActive && !isDragReject,
}),
Expand Down

0 comments on commit 28aada9

Please sign in to comment.