Web: Components: Passed event to onClick handler

This commit is contained in:
Alexey Safronov 2020-06-25 18:11:34 +03:00
parent a454b51bfe
commit e2a80c0e0c

View File

@ -99,8 +99,8 @@ const DropDownItem = props => {
const { isSeparator, label, icon, children, disabled , onClick } = props;
const color = disabled ? '#A3A9AE' : '#333333';
const onClickAction = () => {
onClick && !disabled && onClick();
const onClickAction = (e) => {
onClick && !disabled && onClick(e);
}
return (