diff options
author | Jenny Yu <jennyyu212@outlook.com> | 2022-06-08 01:03:44 -0700 |
---|---|---|
committer | Jenny Yu <jennyyu212@outlook.com> | 2022-06-08 01:03:44 -0700 |
commit | 88a8f35c33bbff61b0058a66d7bcc586d483deca (patch) | |
tree | 6964839bad89269063e3e7c8e3250807118776f1 /src/client/views/nodes/trails/PresElementBox.tsx | |
parent | 58c2085ceb20cd2527ac69088efb7a46b20f8434 (diff) |
fix: hide recording by stopping propagation
Diffstat (limited to 'src/client/views/nodes/trails/PresElementBox.tsx')
-rw-r--r-- | src/client/views/nodes/trails/PresElementBox.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/trails/PresElementBox.tsx b/src/client/views/nodes/trails/PresElementBox.tsx index acdf9c43f..9bace1c8d 100644 --- a/src/client/views/nodes/trails/PresElementBox.tsx +++ b/src/client/views/nodes/trails/PresElementBox.tsx @@ -284,7 +284,8 @@ export class PresElementBox extends ViewBoxBaseComponent<FieldViewProps>() { @undoBatch @action - hideRecording = () => { + hideRecording = (e: React.PointerEvent) => { + e.stopPropagation() DocListCast((Doc.UserDoc().myOverlayDocs as Doc).data).forEach((doc) => { if (doc.slides === this.rootDoc) { Doc.RemoveDocFromList((Doc.UserDoc().myOverlayDocs as Doc), undefined, doc); |