aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-07-17 16:52:28 -0400
committerbob <bcz@cs.brown.edu>2019-07-17 16:52:28 -0400
commit3e6722328fd1adf6aef66040b0f4ef0d5e61f9d0 (patch)
treeb7ea3c5782930f1a7174ba1fe4418aad394fde79
parent33ba82d031266e87b6915de9f84bef2d914c2ae5 (diff)
fixed creating templates of text nodes.
-rw-r--r--src/new_fields/Doc.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index 1dd721396..769c6aa73 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -418,6 +418,6 @@ export namespace Doc {
fieldTemplate.nativeHeight = nh;
fieldTemplate.isTemplate = true;
fieldTemplate.showTitle = "title";
- fieldTemplate.proto = proto;
+ setTimeout(() => fieldTemplate.proto = proto);
}
} \ No newline at end of file