From 0cdbebbd6607d9d190b2c6e0dce17585be0d26ef Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Fri, 25 Jun 2021 08:41:46 +1000 Subject: [PATCH] RemoteContent: stop propagation on unfold click --- pkg/interface/src/views/components/RemoteContent/wrapper.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/interface/src/views/components/RemoteContent/wrapper.tsx b/pkg/interface/src/views/components/RemoteContent/wrapper.tsx index 83d8c2a2fb..0a530524c1 100644 --- a/pkg/interface/src/views/components/RemoteContent/wrapper.tsx +++ b/pkg/interface/src/views/components/RemoteContent/wrapper.tsx @@ -24,7 +24,8 @@ export function RemoteContentWrapper(props: RemoteContentWrapperProps) { } = props; const [unfold, setUnfold] = useState(false); - const toggleUnfold = useCallback(() => { + const toggleUnfold = useCallback((e: React.MouseEvent) => { + e.stopPropagation(); setUnfold(s => !s); }, []);