diff options
author | bobzel <zzzman@gmail.com> | 2023-05-17 22:11:07 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-05-17 22:11:07 -0400 |
commit | 4836040e2d673d347aae6e15c692bfe7103a29d9 (patch) | |
tree | e8ce8909f12b465db38b49ddfb5475079760bfcc /src/client/views/nodes/WebBox.tsx | |
parent | da5184d2113935df25633a6015e177a51e88df2f (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.tsx | 2 |
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)); |