aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/WebBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-05-17 22:11:07 -0400
committerbobzel <zzzman@gmail.com>2023-05-17 22:11:07 -0400
commit4836040e2d673d347aae6e15c692bfe7103a29d9 (patch)
treee8ce8909f12b465db38b49ddfb5475079760bfcc /src/client/views/nodes/WebBox.tsx
parentda5184d2113935df25633a6015e177a51e88df2f (diff)
fixed undo in webboxes. fixed display of pres trail slides.
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r--src/client/views/nodes/WebBox.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx
index 48808dbad..be70e6262 100644
--- a/src/client/views/nodes/WebBox.tsx
+++ b/src/client/views/nodes/WebBox.tsx
@@ -473,13 +473,13 @@ export class WebBox extends ViewBoxAnnotatableComponent<ViewBoxAnnotatableProps
'click',
undoBatch(
action((e: MouseEvent) => {
- const batch = UndoManager.StartBatch('webclick');
let href = '';
for (let ele = e.target as any; ele; ele = ele.parentElement) {
href = (typeof ele.href === 'string' ? ele.href : ele.href?.baseVal) || ele.parentElement?.href || href;
}
const origin = this.webField?.origin;
if (href && origin) {
+ const batch = UndoManager.StartBatch('webclick');
e.stopPropagation();
setTimeout(() => {
this.setData(href.replace(Utils.prepend(''), origin));