mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
fix: added code to prevent the onClick redirect
This commit is contained in:
parent
dc180589fc
commit
8af7adaee9
1 changed files with 1 additions and 0 deletions
|
|
@ -41,6 +41,7 @@ const MetaItem = React.memo(({ className, type, name, poster, posterShape, poste
|
|||
}
|
||||
}, [props.onClick]);
|
||||
const menuOnClick = React.useCallback((event) => {
|
||||
event.stopPropagation();
|
||||
event.nativeEvent.selectPrevented = true;
|
||||
}, []);
|
||||
const menuOnSelect = React.useCallback((event) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue