Skip to content

Commit

Permalink
Merge pull request #1341 from jfrej/fix-wrapper-styles-order
Browse files Browse the repository at this point in the history
Move style spread to after default styles to allow overriding
  • Loading branch information
xile611 committed Jul 5, 2018
2 parents a5388f8 + bf9a98a commit 8458778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart/generateCategoricalChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ const generateCategoricalChart = ({
return (
<div
className={classNames('recharts-wrapper', className)}
style={{ ...style, position: 'relative', cursor: 'default', width, height }}
style={{ position: 'relative', cursor: 'default', width, height, ...style }}
{...events}
ref={(node) => { this.container = node; }}
>
Expand Down

0 comments on commit 8458778

Please sign in to comment.