1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 07:01:12 +00:00

repair code bug

This commit is contained in:
shanshuirenjia
2019-06-04 17:15:48 +08:00
parent 8cf71f84a7
commit b1d62e1e11
2 changed files with 3 additions and 2 deletions

View File

@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import listener from '../context-menu/globalEventListener';
import { Dropdown, ButtonDropdown, DropdownMenu, DropdownToggle, DropdownItem } from 'reactstrap';
import { gettext } from '../../utils/constants';
import { Utils } from '../../utils/utils';
const propTypes = {
tagName: PropTypes.string,
@@ -87,7 +88,7 @@ class ItemDropdownMenu extends React.Component {
}
onMenuItemClick = (event) => {
let operation = event.target.dataset.toggle;
let operation = Utils.getEventData(event, 'toggle');
let item = this.props.item;
this.props.onMenuItemClick(operation, event, item);
}