1
0
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:
Michael An
2025-01-03 10:15:46 +08:00
committed by GitHub
parent af8dd37f97
commit b7219ac7f4

View File

@@ -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 });
};