Skip to content

Commit

Permalink
fix: allow overriding of style position
Browse files Browse the repository at this point in the history
This would make `style={{position: 'absolute'}}` work as expeceted
  • Loading branch information
dbismut committed Jan 2, 2022
1 parent 24d6ae7 commit e899782
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ export const Image: React.FC<ImagePropTypes> = function ({
style={{
display: explicitWidth ? "inline-block" : "block",
overflow: "hidden",
...style,
position: "relative",
...style,
}}
>
{sizer}
Expand Down

0 comments on commit e899782

Please sign in to comment.