diff --git a/src/components/toolbox/dropdown/dropdown.js b/src/components/toolbox/dropdown/dropdown.js index b9e3b4af0f3..e430996a269 100644 --- a/src/components/toolbox/dropdown/dropdown.js +++ b/src/components/toolbox/dropdown/dropdown.js @@ -31,14 +31,7 @@ const Dropdown = ({ isSelectionList ? flattenArray(children).map((child, key) => ( child.type === Separator ? child - : React.cloneElement(child, { - className: ` ${styles.option} ${active === key ? styles.active : ''} ${child.props.className || ''}`, - key, - onClick: (...rest) => { - if (typeof toggleDropdown === 'function') toggleDropdown(); - if (child.props.onClick) child.props.onClick(...rest); - }, - }) + : React.cloneElement(child, { className: ` ${styles.option} ${active === key ? styles.active : ''} ${child.props.className || ''}`, key }) )) : children } diff --git a/src/components/toolbox/dropdownButton/index.js b/src/components/toolbox/dropdownButton/index.js index 33ac6c80ead..29bdac5425b 100644 --- a/src/components/toolbox/dropdownButton/index.js +++ b/src/components/toolbox/dropdownButton/index.js @@ -45,7 +45,6 @@ class DropdownButton extends React.Component {