mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 07:27:04 +00:00
fix item dropdown click (#7299)
This commit is contained in:
@@ -112,7 +112,9 @@ class ItemDropdownMenu extends React.Component {
|
||||
onMenuItemClick = (event) => {
|
||||
let operation = Utils.getEventData(event, 'toggle') ?? event.currentTarget.getAttribute('data-toggle');
|
||||
let item = this.props.item;
|
||||
this.props.unfreezeItem();
|
||||
if (typeof(this.props.unfreezeItem) === 'function') {
|
||||
this.props.unfreezeItem();
|
||||
}
|
||||
this.props.onMenuItemClick(operation, event, item);
|
||||
this.setState({ isItemMenuShow: false });
|
||||
};
|
||||
|
Reference in New Issue
Block a user