aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-11-02 10:42:25 -0400
committerbobzel <zzzman@gmail.com>2022-11-02 10:42:25 -0400
commit1a8024dce302acc1637cd1f7d74b0238c5979c15 (patch)
tree7666af3b597a61de32be38b90927cae36f1fc314 /src/client/views/nodes/DocumentView.tsx
parentdcc1c3cb204f5ffe506860daf772f2e978371738 (diff)
select docs when title header is edited. fixed doc decoration top border. sort sidebar annos by y coord
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index 50b76896e..595fc3bca 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -1313,7 +1313,10 @@ export class DocumentViewInternal extends DocComponent<DocumentViewInternalProps
.join('\\')}
display={'block'}
fontSize={10}
- GetValue={() => (showTitle.split(';').length === 1 ? showTitle + '=' + Field.toString(targetDoc[showTitle.split(';')[0]] as any as Field) : '#' + showTitle)}
+ GetValue={() => {
+ this.props.select(false);
+ return showTitle.split(';').length === 1 ? showTitle + '=' + Field.toString(targetDoc[showTitle.split(';')[0]] as any as Field) : '#' + showTitle;
+ }}
SetValue={undoBatch((input: string) => {
if (input?.startsWith('#')) {
if (this.props.showTitle) {