Skip to content

Commit

Permalink
Merge pull request #5038 from GeekyAnts/hotfix/3.4.6-rc.1-iconbutton
Browse files Browse the repository at this point in the history
fix: icon button props
  • Loading branch information
surajahmed committed May 26, 2022
2 parents d0392cc + bc84624 commit f5bb383
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/composites/IconButton/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ const IconButton = (
let clonedIcon;
if (icon) {
clonedIcon = React.cloneElement(icon, {
...icon?.props,
..._icon,
...icon?.props,
...props._icon,
});
}

Expand Down

0 comments on commit f5bb383

Please sign in to comment.