aboutsummaryrefslogtreecommitdiff
path: root/src/fields/util.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-10-07 15:02:16 -0400
committerbobzel <zzzman@gmail.com>2020-10-07 15:02:16 -0400
commite6b8a14e3463ba65a4dac9f1fcfa6323084904d4 (patch)
treed92c44501f5288d9bfc1912bf5e38b7c546e46f7 /src/fields/util.ts
parent51beecf3978350998075ec2ccf0a4072b3ca850a (diff)
fixed following links to set the scollTop of PDFs corretion. Fixed following links to rich text anchors to scroll and highlight properly. fixed pushpin behavior to only toggle off when the target is in sight.
Diffstat (limited to 'src/fields/util.ts')
-rw-r--r--src/fields/util.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts
index 8a694de83..7293db0c2 100644
--- a/src/fields/util.ts
+++ b/src/fields/util.ts
@@ -385,7 +385,7 @@ export function updateFunction(target: any, prop: any, value: any, receiver: any
receiver[prop].push(...diff.items);
},
undo: action(() => {
- let curList = receiver[prop];
+ const curList = receiver[prop];
//while (curList[ForwardUpates]) curList = curList[ForwardUpates];
diff.items.forEach((doc: any) => {
const ind = curList.indexOf(doc.value());
@@ -396,7 +396,7 @@ export function updateFunction(target: any, prop: any, value: any, receiver: any
diff?.op === "$remFromSet" ?
{
redo: action(() => {
- let curList = receiver[prop];
+ const curList = receiver[prop];
diff.items.forEach((doc: any) => {
const ind = curList.indexOf(doc.value());
ind !== -1 && curList.splice(ind, 1);