diff options
author | bob <bcz@cs.brown.edu> | 2020-02-17 19:16:40 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2020-02-17 19:16:40 -0500 |
commit | e1e50cd52ccd41d599bcbbfff7eca452f02b96db (patch) | |
tree | 701664daef6da48441d3f3995d6f7adf6077b36d /src/client/views/nodes/FormattedTextBox.tsx | |
parent | 710ff9dbfd255fc0d9a19957c8413423a6e9c65a (diff) |
added ':' syntax to free form view to create specific note types.
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index c2f1c9ac7..56926382e 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -770,7 +770,7 @@ export class FormattedTextBox extends DocAnnotatableComponent<(FieldViewProps & } } - const selectOnLoad = this.props.Document[Id] === FormattedTextBox.SelectOnLoad; + const selectOnLoad = (Cast(this.props.Document.expandedTemplate, Doc, null) || this.props.Document)[Id] === FormattedTextBox.SelectOnLoad; if (selectOnLoad) { FormattedTextBox.SelectOnLoad = ""; this.props.select(false); |