mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 07:41:26 +00:00
repair code bug
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -38,7 +38,7 @@ class MainPanel extends Component {
|
||||
}
|
||||
|
||||
onMainNavBarClick = (e) => {
|
||||
let path = Utils.getEventData(e, path);
|
||||
let path = Utils.getEventData(e, 'path');
|
||||
this.props.onMainNavBarClick(path);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user