mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-18 12:52:52 +00:00
close MetaItem menu on option clicked
This commit is contained in:
parent
23297a1470
commit
6ff114bb21
1 changed files with 4 additions and 0 deletions
|
|
@ -30,6 +30,10 @@ const MetaItem = React.memo(({ className, id, type, name, posterShape = 'square'
|
|||
menuOptionOnSelect(event);
|
||||
}
|
||||
|
||||
if (!event.nativeEvent.closeMenuPrevented) {
|
||||
closeMenu();
|
||||
}
|
||||
|
||||
event.nativeEvent.selectItemPrevented = true;
|
||||
}, [menuOptionOnSelect]);
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in a new issue