Merge pull request #1360 from Stremio/fix/subtitle-context-menu-selection
Some checks are pending
Build / build (push) Waiting to run

Player: Prevent subtitle selection from context menu
This commit is contained in:
Timothy Z. 2026-08-07 12:40:16 +03:00 committed by GitHub
commit 4df8998f0f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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]);