diff options
author | bobzel <zzzman@gmail.com> | 2021-09-13 17:35:17 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-13 17:35:17 -0400 |
commit | d15841974305bf01251f60fa73a8464c7cb914fe (patch) | |
tree | 1754b55f9e4b6d7b8cb5f7c4c61bbd203bbe7926 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | bab473b8c5916404c49f46a639bc660aa7ee2130 (diff) |
fixed dragging document that is unselected by clicking on nested object in sidbear to not double-drag two items effectively deleting the sidebar document. fixed undoing of document decorations topbar buttons.
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index b1d4a79db..acc2892d8 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -216,7 +216,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<(FieldViewProp AnchorMenu.Instance.Status = "marquee"; AnchorMenu.Instance.OnClick = (e: PointerEvent) => { - !this._showSidebar && this.toggleSidebar(); + !this.layoutDoc.showSidebar && this.toggleSidebar(); this._sidebarRef.current?.anchorMenuClick(this.getAnchor()); }; AnchorMenu.Instance.Highlight = action((color: string, isLinkButton: boolean) => { |