mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
fix(MetaItem): libitems menu behavior
This commit is contained in:
parent
95e33666bd
commit
8f4bcb4d26
1 changed files with 2 additions and 5 deletions
|
|
@ -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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue