Skip to content

Commit

Permalink
change order of prop overriding
Browse files Browse the repository at this point in the history
  • Loading branch information
mstruebing committed Feb 28, 2019
1 parent ac97191 commit bb86eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -727,8 +727,8 @@ export function compiler(markdown, options) {
return createElementFn(
getTag(tag, options.overrides),
{
...overrideProps,
...props,
...overrideProps,
className:
cx(props && props.className, overrideProps.className) || undefined,
},
Expand Down

0 comments on commit bb86eae

Please sign in to comment.