Skip to content

Commit

Permalink
Fix #3757: Splitbutton repsect menu API className (#3759)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Dec 8, 2022
1 parent 553120b commit 1109712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/lib/splitbutton/SplitButtonItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const SplitButtonItem = React.memo((props) => {
return null;
}

const { disabled, icon: _icon, label: _label, template, url, target } = props.menuitem;
const className = classNames('p-menuitem-link', { 'p-disabled': disabled });
const { disabled, icon: _icon, label: _label, template, url, target, className: _className } = props.menuitem;
const className = classNames('p-menuitem-link', _className, { 'p-disabled': disabled });
const iconClassName = classNames('p-menuitem-icon', _icon);
const icon = IconUtils.getJSXIcon(_icon, { className: 'p-menuitem-icon' }, { props: props.splitButtonProps });
const label = _label && <span className="p-menuitem-text">{_label}</span>;
Expand Down

0 comments on commit 1109712

Please sign in to comment.