diff options
author | bobzel <zzzman@gmail.com> | 2020-10-10 13:58:48 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-10 13:58:48 -0400 |
commit | 7314eace7c9df5d283b9c02cf08cc25857b88dd4 (patch) | |
tree | 925bdf974d47454d8a5eb2b76efac1de0809cb9c /src | |
parent | 8539e5dbeecee2731de46a30ae8a0e7008cc3524 (diff) |
fixed showing ink tools when text is unselected.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionMenu.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionMenu.tsx b/src/client/views/collections/CollectionMenu.tsx index 429764154..bf6067978 100644 --- a/src/client/views/collections/CollectionMenu.tsx +++ b/src/client/views/collections/CollectionMenu.tsx @@ -528,7 +528,9 @@ export class CollectionFreeFormViewChrome extends React.Component<CollectionMenu return SelectionManager.SelectedDocuments().length ? SelectionManager.SelectedDocuments()[0] : undefined; } @computed get selectedDoc() { return this.selectedDocumentView?.rootDoc; } - @computed get isText() { return this.selectedDoc?.type === DocumentType.RTF || RichTextMenu.Instance?.view ? true : false; } + @computed get isText() { + return this.selectedDoc?.type === DocumentType.RTF || (RichTextMenu.Instance?.view as any)?.focused ? true : false; + } @undoBatch @action |