Skip to content

Commit

Permalink
fix: #3382 (#3383)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinkrustev authored Sep 29, 2022
1 parent b9959cb commit 70815e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const Button = React.memo(
const disabled = props.disabled || props.loading;
const otherProps = ObjectUtils.findDiffKeys(props, Button.defaultProps);
const className = classNames('p-button p-component', props.className, {
'p-button-icon-only': (props.icon || (props.loading && props.loadingIcon)) && !props.label,
'p-button-icon-only': (props.icon || (props.loading && props.loadingIcon)) && !props.label && !props.children,
'p-button-vertical': (props.iconPos === 'top' || props.iconPos === 'bottom') && props.label,
'p-disabled': disabled,
'p-button-loading': props.loading,
Expand Down

0 comments on commit 70815e2

Please sign in to comment.