RemoteContent: stop propagation on unfold click

This commit is contained in:
Liam Fitzgerald 2021-06-25 08:41:46 +10:00
parent 6df2d349d3
commit 0cdbebbd66
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

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