mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Merge pull request #584 from Stremio/bug-fix-multiselect-redirect
fix: added code to prevent the onClick redirect
This commit is contained in:
commit
5499f86d3c
1 changed files with 2 additions and 4 deletions
|
|
@ -32,12 +32,10 @@ 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) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue