mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-08-19 02:06:26 +00:00
Merge pull request #1360 from Stremio/fix/subtitle-context-menu-selection
Some checks are pending
Build / build (push) Waiting to run
Some checks are pending
Build / build (push) Waiting to run
Player: Prevent subtitle selection from context menu
This commit is contained in:
commit
4df8998f0f
1 changed files with 2 additions and 1 deletions
|
|
@ -112,7 +112,8 @@ const ContextMenu = ({ children, on, autoClose, lock }: Props) => {
|
|||
|
||||
const handleKeyDown = useCallback((event: KeyboardEvent) => event.key === 'Escape' && close(), [close]);
|
||||
|
||||
const onClick = useCallback(() => {
|
||||
const onClick = useCallback((event: React.MouseEvent) => {
|
||||
event.stopPropagation();
|
||||
autoClose && close();
|
||||
}, [autoClose, close]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue