Skip to content

Commit

Permalink
fix(MetaItem): libitems menu behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Feb 15, 2024
1 parent 95e3366 commit 8f4bcb4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/common/MetaItem/MetaItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,13 @@ const MetaItem = React.memo(({ className, type, name, poster, posterShape, poste
null;
}, [deepLinks]);
const metaItemOnClick = React.useCallback((event) => {
if (typeof props.onClick === 'function') {
props.onClick(event);
}

if (event.nativeEvent.selectPrevented) {
event.preventDefault();
} else if (typeof props.onClick === 'function') {
props.onClick(event);
}
}, [props.onClick]);
const menuOnClick = React.useCallback((event) => {
event.stopPropagation();
event.nativeEvent.selectPrevented = true;
}, []);
const menuOnSelect = React.useCallback((event) => {
Expand Down

0 comments on commit 8f4bcb4

Please sign in to comment.