diff options
| author | bobzel <zzzman@gmail.com> | 2022-04-28 01:37:27 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-04-28 01:37:27 -0400 |
| commit | 36261eac67ae6f872c9be2c9766d21ac24698f8e (patch) | |
| tree | 8eb68e19a36629dfeedb2ae55d79a587eacaae73 /src/client/views/PropertiesDocBacklinksSelector.tsx | |
| parent | d3eac62cbc55f186d9e2d3cc47407087fdc03ec7 (diff) | |
fixed linkEditor to work when invoked from documentButtonsBar and properties sidebar is up.
Diffstat (limited to 'src/client/views/PropertiesDocBacklinksSelector.tsx')
| -rw-r--r-- | src/client/views/PropertiesDocBacklinksSelector.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/PropertiesDocBacklinksSelector.tsx b/src/client/views/PropertiesDocBacklinksSelector.tsx index dce3e35e8..4ead8eaf0 100644 --- a/src/client/views/PropertiesDocBacklinksSelector.tsx +++ b/src/client/views/PropertiesDocBacklinksSelector.tsx @@ -3,6 +3,7 @@ import { observer } from "mobx-react"; import * as React from "react"; import { Doc, DocListCast } from "../../fields/Doc"; import { Cast } from "../../fields/Types"; +import { emptyFunction } from "../../Utils"; import { DocumentType } from "../documents/DocumentTypes"; import { LinkManager } from "../util/LinkManager"; import { SelectionManager } from "../util/SelectionManager"; @@ -46,7 +47,7 @@ export class PropertiesDocBacklinksSelector extends React.Component<PropertiesDo render() { return !SelectionManager.Views().length ? (null) : <div> {this.props.hideTitle ? (null) : <p key="contexts">Contexts:</p>} - <LinkMenu docView={SelectionManager.Views().lastElement()} itemHandler={this.getOnClick} position={{ x: 0 }} /> + <LinkMenu docView={SelectionManager.Views().lastElement()} clearLinkEditor={emptyFunction} itemHandler={this.getOnClick} position={{ x: 0 }} /> </div>; } }
\ No newline at end of file |
