diff options
| author | bobzel <zzzman@gmail.com> | 2023-12-01 02:33:04 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-12-01 02:33:04 -0500 |
| commit | 9ae07e29f41df9d64985c25b67054843a99a0224 (patch) | |
| tree | 092fc2062bbca4c6d59cb6c49e977197addf5556 /src/client/views/SidebarAnnos.tsx | |
| parent | 0e9f8ceceeca5bca7888cb611afb4d2b9963d5ae (diff) | |
converted props.DataDoc to props.TemplateDataDocument and fixed so that it's always undefined unless it's a template. converted references from rootDocument to props.TemplateDataDocument.
Diffstat (limited to 'src/client/views/SidebarAnnos.tsx')
| -rw-r--r-- | src/client/views/SidebarAnnos.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/SidebarAnnos.tsx b/src/client/views/SidebarAnnos.tsx index 9377aabe9..8e62ed999 100644 --- a/src/client/views/SidebarAnnos.tsx +++ b/src/client/views/SidebarAnnos.tsx @@ -77,7 +77,7 @@ export class SidebarAnnos extends React.Component<FieldViewProps & ExtraProps> { _text_fontSize: StrCast(Doc.UserDoc().fontSize), _text_fontFamily: StrCast(Doc.UserDoc().fontFamily), }); - FormattedTextBox.SelectOnLoad = target[Id]; + FormattedTextBox.SetSelectOnLoad(target); FormattedTextBox.DontSelectInitialText = true; const link = DocUtils.MakeLink(anchor, target, { link_relationship: 'inline comment:comment on' }); link && (link.link_displayLine = false); |
